MT support in mingw win32.

This commit is contained in:
Vitor Santos Costa
2012-06-29 15:38:49 -05:00
parent 2d71a96d54
commit 5989af937b
8 changed files with 141 additions and 107 deletions

View File

@@ -2595,7 +2595,7 @@ PL_set_engine(PL_engine_t engine, PL_engine_t *old)
}
pthread_mutex_lock(&(REMOTE_ThreadHandle(nwid).tlock));
if (REMOTE_ThreadHandle(nwid).pthread_handle) {
if (REMOTE_ThreadHandle(nwid).ref_count) {
pthread_mutex_unlock(&(REMOTE_ThreadHandle(nwid).tlock));
if (cwid != nwid) {
return PL_ENGINE_INUSE;