VirtualBox

Changeset 83124 in vbox for trunk/include/iprt/thread.h


Ignore:
Timestamp:
Feb 20, 2020 5:23:23 PM (5 years ago)
Author:
vboxsync
Message:

IPRT: Merged the two tls files, with the sideeffect that destructors only works for IPRT threads in non-dll setups.

File:
1 edited

Legend:

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

    r82968 r83124  
    915915 *                          This is set to NIL_RTTLS on failure.
    916916 * @param   pfnDestructor   Optional callback function for cleaning up on
    917  *                          thread termination. WARNING! This feature may not
    918  *                          be implemented everywhere.
     917 *                          thread termination.
     918 * @note    In static builds on windows, the destructor will only be invoked for
     919 *          IPRT threads.
     920 * @note    There are probably OS specific restrictions on what operations you
     921 *          are allowed to perform from a TLS destructor, so keep it simple.
    919922 */
    920923RTR3DECL(int) RTTlsAllocEx(PRTTLS piTls, PFNRTTLSDTOR pfnDestructor);
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