VirtualBox

Changeset 83421 in vbox


Ignore:
Timestamp:
Mar 25, 2020 5:06:54 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxService: Resolved another @todo: Thread ID wrap around not needed. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r83409 r83421  
    23752375    /* Static counter to help tracking session thread <-> process relations. */
    23762376    static uint32_t s_uCtrlSessionThread = 0;
    2377 #if 1
    2378     if (++s_uCtrlSessionThread == 100000)
    2379 #else /* This must be some joke, right? ;-) */
    2380     if (s_uCtrlSessionThread++ == UINT32_MAX)
    2381 #endif
    2382         s_uCtrlSessionThread = 0; /* Wrap around to not let IPRT freak out. */
    23832377
    23842378    /*
     
    24222416            if (RT_SUCCESS(rc))
    24232417            {
     2418                s_uCtrlSessionThread++;
     2419
    24242420                /*
    24252421                 * Start the session child process.
     
    24322428                     */
    24332429                    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);
    24352431                    if (RT_SUCCESS(rc))
    24362432                    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette