Changeset e422319dd78632bf0c1348cc79f732529d6337b9

Show
Ignore:
Timestamp:
07/09/08 20:58:29 (3 months ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1220813909 +0200
git-parent:

[e79c499d198e545f54d2d3427200a2cd6707f192]

git-author:
Laurent Aimar <fenrir@videolan.org> 1220813863 +0200
Message:

Fixed vlc_cond*wait on win32.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/threads.c

    re79c499 re422319  
    536536        result = WaitForSingleObjectEx (*p_condvar, INFINITE, TRUE); 
    537537        EnterCriticalSection (&p_mutex->mutex); 
    538         ResetEvent (*p_condvar); 
    539538    } 
    540539    while (result == WAIT_IO_COMPLETION); 
     540 
     541    ResetEvent (*p_condvar); 
    541542 
    542543#endif 
     
    582583        result = WaitForSingleObjectEx (*p_condvar, delay, TRUE); 
    583584        EnterCriticalSection (&p_mutex->mutex); 
    584         ResetEvent (*p_condvar); 
    585585    } 
    586586    while (result == WAIT_IO_COMPLETION); 
     587 
     588    ResetEvent (*p_condvar); 
    587589 
    588590    return (result == WAIT_OBJECT_0) ? 0 : ETIMEDOUT;