VirtualBox

Changeset 11596 in vbox for trunk/include


Ignore:
Timestamp:
Aug 23, 2008 11:25:03 PM (16 years ago)
Author:
vboxsync
Message:

iprt: Added RTThreadCreateV and RTThreadCreateF which takes a format string and arguments for the thread name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/thread.h

    r8645 r11596  
    3333#include <iprt/cdefs.h>
    3434#include <iprt/types.h>
     35#include <iprt/stdarg.h>
    3536
    3637#ifdef IN_GC
     
    216217
    217218/**
     219 * Create a new thread.
     220 * 
     221 * Same as RTThreadCreate except the name is given in the RTStrPrintfV form.
     222 *
     223 * @returns iprt status code.
     224 * @param   pThread     See RTThreadCreate.
     225 * @param   pfnThread   See RTThreadCreate.
     226 * @param   pvUser      See RTThreadCreate.
     227 * @param   cbStack     See RTThreadCreate.
     228 * @param   enmType     See RTThreadCreate.
     229 * @param   fFlags      See RTThreadCreate.
     230 * @param   pszName     Thread name format.
     231 * @param   va          Format arguments.
     232 */
     233RTDECL(int) RTThreadCreateV(PRTTHREAD pThread, PFNRTTHREAD pfnThread, void *pvUser, size_t cbStack,
     234                            RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, va_list va);
     235
     236/**
     237 * Create a new thread.
     238 * 
     239 * Same as RTThreadCreate except the name is given in the RTStrPrintf form.
     240 *
     241 * @returns iprt status code.
     242 * @param   pThread     See RTThreadCreate.
     243 * @param   pfnThread   See RTThreadCreate.
     244 * @param   pvUser      See RTThreadCreate.
     245 * @param   cbStack     See RTThreadCreate.
     246 * @param   enmType     See RTThreadCreate.
     247 * @param   fFlags      See RTThreadCreate.
     248 * @param   pszName     Thread name format.
     249 * @param   ...         Format arguments.
     250 */
     251RTDECL(int) RTThreadCreateF(PRTTHREAD pThread, PFNRTTHREAD pfnThread, void *pvUser, size_t cbStack,
     252                            RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, ...);
     253
     254/**
    218255 * Gets the native thread id of a IPRT thread.
    219256 *
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