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=a39b7820253c01bf7ec4bd33e86b07ffc3aea34a;hb=65443172dd60a6ea312bd3a15959dbf54ad7f045;hp=cf9c32519630636adaefe3e6e861af88a5b2deb5;hpb=def50dc175cebc67238db5f1acd5ff322a2279bd;p=o-du%2Fl2.git diff --git a/src/mt/mt_ss.h b/src/mt/mt_ss.h index cf9c32519..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 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)*/ +/*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)