VirtualBox

Ignore:
Timestamp:
Mar 25, 2020 9:10:04 AM (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/VBoxServiceControlProcess.cpp

    r83287 r83399  
    17661766    {
    17671767        static uint32_t s_uCtrlExecThread = 0;
    1768         if (s_uCtrlExecThread++ == UINT32_MAX) /** @todo r=bird: ????????????? */
    1769             s_uCtrlExecThread = 0; /* Wrap around to not let IPRT freak out. */
    17701768        rc = RTThreadCreateF(&pProcess->Thread, vgsvcGstCtrlProcessThread,
    17711769                             pProcess /*pvUser*/, 0 /*cbStack*/,
    1772                              RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "gctl%u", s_uCtrlExecThread);
     1770                             RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "gctl%RU32", s_uCtrlExecThread++);
    17731771        if (RT_FAILURE(rc))
    17741772        {
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