diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2024-06-21 19:08:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-21 13:08:53 +0200 |
| commit | 3dcd08bd4a7cb9fa8a52a0a55d1f0c15eac9632a (patch) | |
| tree | ea6b36fc534b26fd26c393eff3a2a87774ad4b89 /src/libtools/threads.c | |
| parent | a945daf96dad09d7c7f72095435236b4c7768747 (diff) | |
| download | box64-3dcd08bd4a7cb9fa8a52a0a55d1f0c15eac9632a.tar.gz box64-3dcd08bd4a7cb9fa8a52a0a55d1f0c15eac9632a.zip | |
Wrapped pthread_cond_signal with aligned cond like others (#1608)
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 6566b84e..074068c0 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -712,6 +712,12 @@ static pthread_cond_t* alignCond(pthread_cond_t* pc) return pc; } +EXPORT int my_pthread_cond_signal(x64emu_t* emu, pthread_cond_t* cond) +{ + (void)emu; + int ret = pthread_cond_signal(alignCond(cond)); + return ret; +} EXPORT int my_pthread_cond_timedwait(x64emu_t* emu, pthread_cond_t* cond, void* mutex, void* abstime) { (void)emu; |