DWORD WINAPI PrtStatus() { CriticalSection cs; DBGPRINTF(5, ("PrtStatus()\n")); DWORD dwRet = Status(); return dwRet; }
private object lockObject = new object();
ushort PrtStatus() { // Locks the section and releases upon scope exit. lock (lockObject) { Debug.WriteLine("PrtStatus()", 5); return Status(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)