Changeset 3165 in kBuild
- Timestamp:
- Mar 20, 2018 3:31:34 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/w32/winchildren.c
r3162 r3165 294 294 static unsigned volatile g_idxLastChildcareWorker = 0; 295 295 296 #ifdef WITH_RW_LOCK 296 297 /** RW lock for serializing kmkbuiltin_redirect and CreateProcess. */ 297 298 static SRWLOCK g_RWLock; 299 #endif 298 300 299 301 … … 392 394 } 393 395 396 #ifdef WITH_RW_LOCK 394 397 /* 395 398 * For serializing with standard file handle manipulation (kmkbuiltin_redirect). 396 399 */ 397 400 InitializeSRWLock(&g_RWLock); 401 #endif 398 402 399 403 /* … … 636 640 DB(DB_JOBS, ("CreateProcessW(%ls, %ls,,, TRUE, %#x...)\n", pwszImageName, pwszCommandLine, fFlags)); 637 641 memset(&ProcInfo, 0, sizeof(ProcInfo)); 642 #ifdef WITH_RW_LOCK 638 643 AcquireSRWLockShared(&g_RWLock); 644 #endif 639 645 640 646 fRet = CreateProcessW((WCHAR *)pwszImageName, (WCHAR *)pwszCommandLine, NULL /*pProcSecAttr*/, NULL /*pThreadSecAttr*/, … … 642 648 dwErr = GetLastError(); 643 649 650 #ifdef WITH_RW_LOCK 644 651 ReleaseSRWLockShared(&g_RWLock); 652 #endif 645 653 if (fRet) 646 654 pChild->u.Process.hProcess = ProcInfo.hProcess; … … 2469 2477 } 2470 2478 2471 #if 0 /* no longer needed */2479 #ifdef WITH_RW_LOCK 2472 2480 /** Serialization with kmkbuiltin_redirect. */ 2473 2481 void MkWinChildExclusiveAcquire(void) … … 2481 2489 ReleaseSRWLockExclusive(&g_RWLock); 2482 2490 } 2483 #endif 2491 #endif /* WITH_RW_LOCK */ 2484 2492 2485 2493 /**
Note:
See TracChangeset
for help on using the changeset viewer.