[Linker] refactorize how symbols are loaded
[mono.git] / mono / metadata / mono-wsq.c
index 2e3f5f0a68c97ef14b79cea1243dcd30bd783670..3c36dcee88da733f0dd0ba63276290a55127ed1d 100644 (file)
@@ -191,7 +191,7 @@ mono_wsq_try_steal (MonoWSQ *wsq, void **ptr, guint32 ms_timeout)
        if (TlsGetValue (wsq_tlskey) == wsq)
                return;
 
-       if (MONO_SEM_TIMEDWAIT (&wsq->lock, ms_timeout)) {
+       if (mono_sem_timedwait (&wsq->lock, ms_timeout, FALSE) == 0) {
                int head;
 
                head = wsq->head;