X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2Frmr%2Fcommon%2Fsrc%2Frt_generic_static.c;h=0de69c83a202a1132a2b06d98c8fe92395e4ae83;hb=a68562a02028434a87149d5996b291e83d33be51;hp=56b124ec8d276aec03f1de359f13cb490b4a8a69;hpb=955ce64d08bd90a8fe30e3033ece95a0cf08d78b;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/common/src/rt_generic_static.c b/src/rmr/common/src/rt_generic_static.c index 56b124e..0de69c8 100644 --- a/src/rmr/common/src/rt_generic_static.c +++ b/src/rmr/common/src/rt_generic_static.c @@ -371,6 +371,12 @@ static void alarm_if_drops( uta_ctx_t* uctx, uta_ctx_t* pctx ) { } // ---- utility ----------------------------------------------------------------------------------- + +int isspace_with_fence(int c) { + _mm_lfence(); + return isspace( c ); +} + /* Little diddy to trim whitespace and trailing comments. Like shell, trailing comments must be at the start of a word (i.e. must be immediatly preceeded by whitespace). @@ -1693,9 +1699,4 @@ static inline void release_rt( uta_ctx_t* ctx, route_table_t* rt ) { pthread_mutex_unlock( ctx->rtgate ); } -int isspace_with_fence(int c) { - _mm_lfence(); - return isspace( c ); -} - #endif