* bsd_mutex.cc (_msleep): Reset event object and close it before
entering mutex. Turn order of conditional for better readability.
This commit is contained in:
parent
f048a4a16f
commit
a918549275
|
@ -1,3 +1,8 @@
|
||||||
|
2004-07-30 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* bsd_mutex.cc (_msleep): Reset event object and close it before
|
||||||
|
entering mutex. Turn order of conditional for better readability.
|
||||||
|
|
||||||
2004-07-26 Corinna Vinschen <corinna@vinschen.de>
|
2004-07-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
|
* cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
|
||||||
|
|
|
@ -222,10 +222,12 @@ _msleep (void *ident, struct mtx *mtx, int priority,
|
||||||
panic ("wait in msleep (%s) failed, %E", wmesg);
|
panic ("wait in msleep (%s) failed, %E", wmesg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
set_priority (old_priority);
|
/* Dismiss event before entering mutex. */
|
||||||
if (!(priority & PDROP) && mtx)
|
ResetEvent (evt);
|
||||||
mtx_lock (mtx);
|
|
||||||
CloseHandle (evt);
|
CloseHandle (evt);
|
||||||
|
set_priority (old_priority);
|
||||||
|
if (mtx && !(priority & PDROP))
|
||||||
|
mtx_lock (mtx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue