VirtualBox

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


Ignore:
Timestamp:
Dec 16, 2011 12:30:47 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75436
Message:

reqpool.cpp: Use the pool name to name the worker threads.

File:
1 edited

Legend:

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

    r39636 r39639  
    460460    pPool->cThreadsCreated++;
    461461
    462     static uint32_t s_idThread = 0;
    463462    int rc = RTThreadCreateF(&pThread->hThread, rtReqPoolThreadProc, pThread, 0 /*default stack size*/,
    464                              pPool->enmThreadType, 0 /*fFlags*/, "REQPT%02u", ++s_idThread);
     463                             pPool->enmThreadType, 0 /*fFlags*/, "%s%02u", pPool->szName, pPool->cThreadsCreated);
    465464    if (RT_SUCCESS(rc))
    466465        pPool->uLastThreadCreateNanoTs = pThread->uBirthNanoTs;
Note: See TracChangeset for help on using the changeset viewer.

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