BizHawk/waterbox/libc/functions/nothread/mtx_trylock.c

20 lines
204 B
C

#ifndef REGTEST
#include <threads.h>
int mtx_trylock(mtx_t *mtx)
{
(*mtx)++;
return thrd_success;
}
#endif
#ifdef TEST
#include "_PDCLIB_test.h"
int main( void )
{
return TEST_RESULTS;
}
#endif