Ignore:
Timestamp:
Nov 1, 2012, 2:38:33 AM (13 years ago)
Author:
dmik
Message:

kernel32: Add public debug log lock/unlock methods for higher level serialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dbglog.h

    r21916 r22041  
    3535  #define dassert(a, b)   if(!(a)) dprintf b
    3636  #define dbgCheckObj(a)        a->checkObject()
     37  #define dprintfLock()   WriteLogLock()
     38  #define dprintfUnlock() WriteLogUnlock()
    3739  #define DisableLogging()  DecreaseLogCount()
    3840  #define EnableLogging()   IncreaseLogCount()
     
    5658  #define dassert(a, b)
    5759  #define dbgCheckObj(a)
     60  #define dprintfLock()
     61  #define dprintfUnlock()
    5862  #define DisableLogging()
    5963  #define EnableLogging()
     
    8185int  SYSTEM WriteLogNoEOL(const char *tekst, ...);
    8286int  SYSTEM WritePrivateLog(void *logfile, const char *tekst, ...);
     87
     88void SYSTEM WriteLogLock();
     89void SYSTEM WriteLogUnlock();
    8390
    8491void SYSTEM DecreaseLogCount();
Note: See TracChangeset for help on using the changeset viewer.