Changeset 83421 in vbox
- Timestamp:
- Mar 25, 2020 5:06:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r83409 r83421 2375 2375 /* Static counter to help tracking session thread <-> process relations. */ 2376 2376 static uint32_t s_uCtrlSessionThread = 0; 2377 #if 12378 if (++s_uCtrlSessionThread == 100000)2379 #else /* This must be some joke, right? ;-) */2380 if (s_uCtrlSessionThread++ == UINT32_MAX)2381 #endif2382 s_uCtrlSessionThread = 0; /* Wrap around to not let IPRT freak out. */2383 2377 2384 2378 /* … … 2422 2416 if (RT_SUCCESS(rc)) 2423 2417 { 2418 s_uCtrlSessionThread++; 2419 2424 2420 /* 2425 2421 * Start the session child process. … … 2432 2428 */ 2433 2429 rc = RTThreadCreateF(&pSessionThread->Thread, vgsvcGstCtrlSessionThread, pSessionThread /*pvUser*/, 0 /*cbStack*/, 2434 RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, " CtrlSess%u", s_uCtrlSessionThread);2430 RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "gctls%RU32", s_uCtrlSessionThread); 2435 2431 if (RT_SUCCESS(rc)) 2436 2432 {
Note:
See TracChangeset
for help on using the changeset viewer.