VirtualBox

Changeset 36596 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 6, 2011 7:45:34 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71041
Message:

iprt/thread.h: Added RTThreadIsInitialized, RTThreadIsSelfKnown and RTThreadIsSelfAlive.

File:
1 edited

Legend:

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

    r36555 r36596  
    7171    /** Waiting on a spin mutex. */
    7272    RTTHREADSTATE_SPIN_MUTEX,
     73    /** End of the thread states. */
     74    RTTHREADSTATE_END,
    7375
    7476    /** The usual 32-bit size hack. */
     
    163165
    164166#ifndef IN_RC
     167
     168/**
     169 * Checks if the IPRT thread component has been initialized.
     170 *
     171 * This is used to avoid calling into RTThread before the runtime has been
     172 * initialized.
     173 *
     174 * @returns @c true if it's initialized, @c false if not.
     175 */
     176RTDECL(bool) RTThreadIsInitialized(void);
    165177
    166178/**
     
    378390 */
    379391RTDECL(bool) RTThreadIsMain(RTTHREAD hThread);
     392
     393/**
     394 * Checks if the calling thread is known to IPRT.
     395 *
     396 * @returns @c true if it is, @c false if it isn't.
     397 */
     398RTDECL(bool) RTThreadIsSelfKnown(void);
     399
     400/**
     401 * Checks if the calling thread is know to IPRT and is alive.
     402 *
     403 * @returns @c true if it is, @c false if it isn't.
     404 */
     405RTDECL(bool) RTThreadIsSelfAlive(void);
     406
     407/**
     408 * Checks if the calling thread is known to IPRT.
     409 *
     410 * @returns @c true if it is, @c false if it isn't.
     411 */
     412RTDECL(bool) RTThreadIsOperational(void);
    380413
    381414/**
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