Ignore:
Timestamp:
Oct 25, 1999, 8:20:52 PM (26 years ago)
Author:
achimha
Message:

ported Re/UninitializeCriticalSection from WINE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.CPP

    r1403 r1440  
    1 /* $Id: KERNEL32.CPP,v 1.23 1999-10-22 18:07:20 sandervl Exp $ */
     1/* $Id: KERNEL32.CPP,v 1.24 1999-10-25 18:20:52 achimha Exp $ */
    22
    33/*
     
    338338//******************************************************************************
    339339//******************************************************************************
    340 void WINAPI MakeCriticalSectionGlobal( CRITICAL_SECTION *arg1 )
     340void WIN32API MakeCriticalSectionGlobal( CRITICAL_SECTION *arg1 )
    341341{
    342342    dprintf(("KERNEL32:  MakeCriticalSectionGlobal not implemented correctly\n"));
     343}
     344//******************************************************************************
     345//******************************************************************************
     346/***********************************************************************
     347 *           ReinitializeCriticalSection   (KERNEL32.581)
     348 */
     349void WIN32API ReinitializeCriticalSection( CRITICAL_SECTION *crit )
     350{
     351    dprintf(("KERNEL32: ReinitializeCriticalSection\n"));
     352    if ( !crit->LockSemaphore )
     353        InitializeCriticalSection( crit );
     354
     355    else if ( crit->Reserved && crit->Reserved != GetCurrentProcessId() )
     356    {
     357//        FIXME_(win32)("(%p) called for %08lx first, %08lx now: making global\n",
     358//               crit, crit->Reserved, GetCurrentProcessId() );
     359
     360        MakeCriticalSectionGlobal( crit );
     361    }
     362}
     363//******************************************************************************
     364//******************************************************************************
     365/***********************************************************************
     366 *           UninitializeCriticalSection   (KERNEL32.703)
     367 */
     368void WIN32API UninitializeCriticalSection( CRITICAL_SECTION *crit )
     369{
     370    dprintf(("KERNEL32: UninitializeCriticalSection\n"));
     371    if ( crit->LockSemaphore )
     372    {
     373        if ( crit->Reserved )  /* not global */
     374            DeleteCriticalSection( crit );
     375//        else
     376//            FIXME_(win32)("(%p) for %08lx: Crst is global, don't know whether to delete\n",
     377//                   crit, GetCurrentProcessId() );
     378    }
    343379}
    344380//******************************************************************************
     
    869905
    870906
    871 //******************************************************************************
    872 VOID WIN32API UninitializeCriticalSection(CRITICAL_SECTION * lpcsCriticalSection)
    873 {
    874   dprintf(("KERNEL32:  UninitializeCriticalSection NOT IMPLEMENTED\n"));
    875 }
    876 
    877907int WIN32API GetNumberFormatA(LCID     Locale,
    878908                                 DWORD    dwFlags,
Note: See TracChangeset for help on using the changeset viewer.