Changeset 3906

Show
Ignore:
Timestamp:
02/11/10 07:45:34 (6 months ago)
Author:
sletz
Message:

Compiles on Windows again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jack2/trunk/jackmp/windows/JackWinMutex.h

    r3319 r3906  
    4444            fMutex = (HANDLE)CreateMutex(0, FALSE, 0); 
    4545        } 
    46          
     46 
    4747        virtual ~JackWinMutex() 
    4848        { 
     
    5050        } 
    5151 
    52         void Lock() 
     52        bool Lock() 
    5353        { 
    54                        WaitForSingleObject(fMutex, INFINITE); 
     54            return (WAIT_OBJECT_0 == WaitForSingleObject(fMutex, INFINITE)); 
    5555        } 
    5656 
     
    6060        } 
    6161 
    62         void Unlock() 
     62        bool Unlock() 
    6363        { 
    64             ReleaseMutex(fMutex); 
     64            return(ReleaseMutex(fMutex) != 0); 
    6565        } 
    6666