VirtualBox

Changeset 6946 in vbox for trunk/include


Ignore:
Timestamp:
Feb 14, 2008 12:59:57 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28111
Message:

Aligned the TLS destructor bits with posix.

File:
1 edited

Legend:

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

    r6937 r6946  
    379379 * @returns NIL_RTTLS on failure.
    380380 */
    381 RTR3DECL(int) RTTlsAlloc(void);
     381RTR3DECL(RTTLS) RTTlsAlloc(void);
    382382
    383383/**
     
    436436 *
    437437 * @param   pvValue     The current value.
    438  * @param   iTls        The index of TLS entry.
    439  * @param   fFlags      Reserved for the future.
    440  */
    441 typedef DECLCALLBACK(void) FNRTTLSDTOR(void *pvValue, RTTLS iTls, uint32_t fFlags);
     438 */
     439typedef DECLCALLBACK(void) FNRTTLSDTOR(void *pvValue);
    442440/** Pointer to a FNRTTLSDTOR. */
    443441typedef FNRTTLSDTOR *PFNRTTLSDTOR;
     
    460458 *                          registered destructor.
    461459 *
    462  *                          It's pvValue argument is the non-zero value in the
    463  *                          TLS entry for the thread it's called on.
    464  *
    465  *                          It's fFlags argument is reserved for future use, it will
    466  *                          always be zero when the fFlags parameter to this API is zero.
    467  *
    468  * @param   fFlags          Flags reserved for future use. At the moment
    469  *                          only ZERO is allowed.
    470  *
    471  */
    472 RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor, uint32_t fFlags);
     460 */
     461RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor);
    473462
    474463/**
     
    482471 * @param   iTls            The index of the TLS entry.
    483472 * @param   ppfnDestructor  Where to store the destructor address.
    484  * @param   pfFlags         Where to store the flags supplied to RTTlsSetDestructor(). NULL is fine.
    485  */
    486 PFNRTTLSDTOR RTTlsGetDestructor(RTTLS iTls, PFNRTTLSDTOR *ppfnDestructor, uint32_t *pfFlags);
     473 */
     474PFNRTTLSDTOR RTTlsGetDestructor(RTTLS iTls, PFNRTTLSDTOR *ppfnDestructor);
    487475
    488476/** @} */
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