Ignore:
Timestamp:
Feb 9, 2002, 6:27:32 PM (24 years ago)
Author:
sandervl
Message:

logging updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/critsection.cpp

    r4387 r7854  
    1 /* $Id: critsection.cpp,v 1.7 2000-10-02 18:39:33 sandervl Exp $ */
     1/* $Id: critsection.cpp,v 1.8 2002-02-09 17:27:30 sandervl Exp $ */
    22/*
    33 * Win32 critical sections
     
    2424
    2525
    26 #ifdef DEBUG
    27 HANDLE ODIN_EXTERN(CreateSemaphoreA) (LPSECURITY_ATTRIBUTES arg1, LONG arg2, LONG arg3,
    28                                       LPCSTR arg4);
    29 
    30 DWORD ODIN_EXTERN(WaitForSingleObject)(HANDLE hObject, DWORD timeout);
    31 
    32 HANDLE ODIN_EXTERN(ConvertToGlobalHandle)(HANDLE hHandle);
    33 #endif
    34 
    3526/***********************************************************************
    3627 *           InitializeCriticalSection   (KERNEL32.472) (NTDLL.406)
     
    4233    crit->RecursionCount = 0;
    4334    crit->OwningThread   = 0;
    44     crit->LockSemaphore  = CALL_ODINFUNC(CreateSemaphoreA)( NULL, 0, 1, NULL );
     35    crit->LockSemaphore  = CreateSemaphoreA( NULL, 0, 1, NULL );
    4536    crit->Reserved       = GetCurrentProcessId();
    4637}
     
    9384        for (;;)
    9485        {
    95             res = CALL_ODINFUNC(WaitForSingleObject)( crit->LockSemaphore, 5000L );
     86            res = WaitForSingleObject( crit->LockSemaphore, 5000L );
    9687            if ( res == WAIT_TIMEOUT )
    9788            {
    9889                dprintf(("Critical section %p wait timed out, retrying (60 sec)\n", crit ));
    99                 res = CALL_ODINFUNC(WaitForSingleObject)( crit->LockSemaphore, 60000L );
     90                res = WaitForSingleObject( crit->LockSemaphore, 60000L );
    10091                if ( res == WAIT_TIMEOUT && TRACE_ON(relay) )
    10192                {
     
    177168{
    178169    dprintf(("MakeCriticalSectionGlobal %x", crit));
    179     crit->LockSemaphore = CALL_ODINFUNC(ConvertToGlobalHandle)( crit->LockSemaphore );
     170    crit->LockSemaphore = ConvertToGlobalHandle( crit->LockSemaphore );
    180171    crit->Reserved      = 0L;
    181172}
Note: See TracChangeset for help on using the changeset viewer.