diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-02 03:12:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 21:12:15 +0200 |
| commit | b68d46311dba9c410ed5a9339d396486958d1e5b (patch) | |
| tree | 7ca6fde3ea581df1f705b927a06a21da132c90b0 /src/include/box64context.h | |
| parent | 2c7a2082e624a78e42199d90f7d9fa90473c26c2 (diff) | |
| download | box64-b68d46311dba9c410ed5a9339d396486958d1e5b.tar.gz box64-b68d46311dba9c410ed5a9339d396486958d1e5b.zip | |
Moved more OS-dependent functions to os.h (#2491)
Diffstat (limited to 'src/include/box64context.h')
| -rw-r--r-- | src/include/box64context.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h index 2d554703..718d95b3 100644 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -240,16 +240,6 @@ typedef struct box64context_s { } box64context_t; -#ifndef USE_CUSTOM_MUTEX -#define mutex_lock(A) pthread_mutex_lock(A) -#define mutex_trylock(A) pthread_mutex_trylock(A) -#define mutex_unlock(A) pthread_mutex_unlock(A) -#else -#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()) -#endif - extern box64context_t *my_context; // global context box64context_t *NewBox64Context(int argc); |