X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fmt_ss.h;fp=src%2Fmt%2Fmt_ss.h;h=cf9c32519630636adaefe3e6e861af88a5b2deb5;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=b209052b00c4d605bdc7d7dfc3e15fc3429ea877;hpb=1616921700a3c7541f1df6dd2678f9ee4d8e933b;p=o-du%2Fl2.git diff --git a/src/mt/mt_ss.h b/src/mt/mt_ss.h index b209052b0..cf9c32519 100755 --- a/src/mt/mt_ss.h +++ b/src/mt/mt_ss.h @@ -133,8 +133,8 @@ #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)*/ +/*extern 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 +176,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