VirtualBox

Changeset 23125 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Sep 18, 2009 12:34:56 PM (15 years ago)
Author:
vboxsync
Message:

rtThreadAdopt: bugfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r23124 r23125  
    247247     */
    248248    int rc = VERR_NO_MEMORY;
    249     PRTTHREADINT pThread = rtThreadAlloc(enmType, fFlags, RTTHREADINT_FLAGS_ALIEN, pszName);
     249    PRTTHREADINT pThread = rtThreadAlloc(enmType, fFlags, RTTHREADINT_FLAGS_ALIEN | fIntFlags, pszName);
    250250    if (pThread)
    251251    {
     
    255255        {
    256256            rtThreadInsert(pThread, NativeThread);
    257             ASMAtomicWriteSize(&pThread->enmState, RTTHREADSTATE_RUNNING | fIntFlags);
     257            ASMAtomicWriteSize(&pThread->enmState, RTTHREADSTATE_RUNNING);
    258258            rtThreadRelease(pThread);
    259259        }
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