39static int ThreadMacrosTest01Mutex(
void)
49 return (r == 0)? 1 : 0;
67static int ThreadMacrosTest02Spinlocks(
void)
81 return (r == 0)? 1 : 0;
87static int ThreadMacrosTest03RWLocks(
void)
95#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__>=101000
103 return (r == 0)? 1 : 0;
109static int ThreadMacrosTest04RWLocks(
void)
119 return (r == 0)? 1 : 0;
126static int ThreadMacrosTest05RWLocks(
void)
136 return (r == 0)? 1 : 0;
148 UtRegisterTest(
"ThreadMacrosTest01Mutex", ThreadMacrosTest01Mutex);
149 UtRegisterTest(
"ThreadMacrosTest02Spinlocks", ThreadMacrosTest02Spinlocks);
150 UtRegisterTest(
"ThreadMacrosTest03RWLocks", ThreadMacrosTest03RWLocks);
151 UtRegisterTest(
"ThreadMacrosTest04RWLocks", ThreadMacrosTest04RWLocks);
void UtRegisterTest(const char *name, int(*TestFn)(void))
Register unit test.
void RegisterThreadStorageTests(void)
#define SCRWLockTryWRLock(rwl)
#define SCRWLockWRLock(rwl)
#define SCRWLockInit(rwl, rwlattrs)
#define SCRWLockTryRDLock(rwl)
#define SCRWLockRDLock(rwl)
#define SCMutexUnlock(mut)
#define SCMutexTrylock(mut)
#define SCMutexInit(mut, mutattrs)
#define SCRWLockUnlock(rwl)
thread_local char t_thread_name[THREAD_NAME_LEN+1]
void ThreadMacrosRegisterTests(void)
this function registers unit tests for DetectId