From c2a77fca277a96a49e45788601a4afc9570b1eb2 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Tue, 1 Apr 2025 19:50:49 +0800 Subject: Added os.h for future usage (#2488) --- src/include/box64context.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/include/box64context.h') diff --git a/src/include/box64context.h b/src/include/box64context.h index d2c1d23a..2d554703 100644 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -245,7 +245,6 @@ typedef struct box64context_s { #define mutex_trylock(A) pthread_mutex_trylock(A) #define mutex_unlock(A) pthread_mutex_unlock(A) #else -int GetTID(void); #define mutex_lock(A) {uint32_t tid = (uint32_t)GetTID(); while(native_lock_storeifnull_d(A, tid)) sched_yield();} #define mutex_trylock(A) native_lock_storeifnull_d(A, (uint32_t)GetTID()) #define mutex_unlock(A) native_lock_storeifref_d(A, 0, (uint32_t)GetTID()) -- cgit 1.4.1