fx: implement mutex support for rosetta

This commit is contained in:
2026-07-19 13:26:18 +01:00
parent 0fa5c7373f
commit 181a6f7c24
+17
View File
@@ -0,0 +1,17 @@
#include <fx/thread.h>
#include <pthread.h>
bool fx_mutex_lock(fx_mutex *mut)
{
return pthread_mutex_lock(mut) == 0;
}
bool fx_mutex_trylock(fx_mutex *mut)
{
return pthread_mutex_trylock(mut) == 0;
}
bool fx_mutex_unlock(fx_mutex *mut)
{
return pthread_mutex_trylock(mut) == 0;
}