mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 11:13:38 +00:00
msvcr100: Add support for COOPERATIVE_TIMEOUT_INFINITE timeout in critical_section.
This commit is contained in:
parent
684dbfd0c7
commit
0f69396405
|
@ -2590,6 +2590,11 @@ static BOOL block_context_for(Context *ctx, unsigned int timeout)
|
|||
TP_TIMER *tp_timer;
|
||||
FILETIME ft;
|
||||
|
||||
if(timeout == COOPERATIVE_TIMEOUT_INFINITE) {
|
||||
call_Context_Block(ctx);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
tp_timer = CreateThreadpoolTimer(timeout_unlock, &tu, NULL);
|
||||
if(!tp_timer) {
|
||||
FIXME("throw exception?\n");
|
||||
|
|
Loading…
Reference in a new issue