X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fmt_ss.h;h=a39b7820253c01bf7ec4bd33e86b07ffc3aea34a;hb=65443172dd60a6ea312bd3a15959dbf54ad7f045;hp=b209052b00c4d605bdc7d7dfc3e15fc3429ea877;hpb=be7e4e372cc1d6f12f7af9c6b6d09a7ecedca58c;p=o-du%2Fl2.git diff --git a/src/mt/mt_ss.h b/src/mt/mt_ss.h index b209052b0..a39b78202 100755 --- a/src/mt/mt_ss.h +++ b/src/mt/mt_ss.h @@ -133,8 +133,10 @@ #ifndef TENB_RTLIN_CHANGES #define SInitLock(l, t) pthread_mutex_init(l, NULL) #endif -/*extern U32 gt[128]; */ -/*#define SLock(l) (((gt[0x000000FF &((U32)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF &((U32)pthread_self())], MacGetTick()))?0:0)*/ +/*uint32_t gt[128]; */ +/*#define SLock(l) (((gt[0x000000FF + * &((uint32_t)pthread_self())]=MacGetTick())&&pthread_mutex_lock(l)&&MLogTask(30340, RESOURCE_LINL2, gt[0x000000FF + * &((uint32_t)pthread_self())], MacGetTick()))?0:0)*/ #define SLock(l) pthread_mutex_lock(l) #define SUnlock(l) pthread_mutex_unlock(l) #define SDestroyLock(l) pthread_mutex_destroy(l) @@ -176,7 +178,7 @@ exit(0); \ /*mt041.201 Value of MT_TICK_CNT changed*/ /*mt004.301- defining the MT_TICK_CNT in Micro seconds (usecs) */ /* mt010.301 Removed #ifdef SS_FAP portion and enabled oroginal code */ -#define MT_TICK_CNT (((U32)0x0F4240)/SS_TICKS_SEC) +#define MT_TICK_CNT (((uint32_t)0x0F4240)/SS_TICKS_SEC) #define MT_MAX_TICK_CNT_VAL 35 #define MT_MIN_TICK_CNT_VAL 1