VirtualBox

Changeset 63182 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 8, 2016 4:16:42 PM (8 years ago)
Author:
vboxsync
Message:

ThreadTask: split createThread up into three methods to avoid having to pass NULL all the time when the type needs specifying. Also, explictly marked the racy variant.

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VFSExplorerImpl.cpp

    r62485 r63182  
    413413
    414414        //this function delete task in case of exceptions, so there is no need in the call of delete operator
    415         rc = pTask->createThread(NULL, RTTHREADTYPE_MAIN_HEAVY_WORKER);
     415        rc = pTask->createThreadWithType(RTTHREADTYPE_MAIN_HEAVY_WORKER);
    416416    }
    417417    catch (HRESULT aRC)
     
    531531
    532532        //this function delete task in case of exceptions, so there is no need in the call of delete operator
    533         rc = pTask->createThread(NULL, RTTHREADTYPE_MAIN_HEAVY_WORKER);
     533        rc = pTask->createThreadWithType(RTTHREADTYPE_MAIN_HEAVY_WORKER);
    534534    }
    535535    catch (HRESULT aRC)
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r63181 r63182  
    25672567
    25682568        //this function delete pTask in case of exceptions, so there is no need in the call of delete operator
    2569         hr = pTask->createThread(NULL, RTTHREADTYPE_MAIN_WORKER);
     2569        hr = pTask->createThreadWithType(RTTHREADTYPE_MAIN_WORKER);
    25702570
    25712571    }
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