VirtualBox

Changeset 63182 in vbox for trunk/src/VBox/Main/include


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ThreadTask.h

    r63181 r63182  
    3939    { };
    4040
    41     HRESULT createThread(PRTTHREAD pThread = NULL, RTTHREADTYPE enmType = RTTHREADTYPE_MAIN_WORKER);
     41    HRESULT createThread(void);
     42    HRESULT createThreadWithType(RTTHREADTYPE enmType);
     43    HRESULT createThreadWithRaceCondition(PRTTHREAD pThread);
    4244
    4345    virtual void handler() = 0;
     
    4547
    4648protected:
     49    HRESULT createThreadInternal(RTTHREADTYPE enmType, PRTTHREAD pThread);
    4750    static DECLCALLBACK(int) taskHandlerThreadProc(RTTHREAD thread, void *pvUser);
    4851
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