VirtualBox

Changeset 16311 in vbox


Ignore:
Timestamp:
Jan 28, 2009 1:46:41 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: Changed the RTTLS type and corrected RTTLSAlloc defintions.

Location:
trunk
Files:
4 edited

Legend:

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

    r14961 r16311  
    11101110
    11111111/** A TLS index. */
    1112 typedef int                                         RTTLS;
     1112typedef RTHCINTPTR                                  RTTLS;
    11131113/** Pointer to a TLS index. */
    11141114typedef RTTLS                                      *PRTTLS;
  • trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp

    r8245 r16311  
    226226
    227227
    228 RTR3DECL(int) RTTlsAlloc(void)
     228RTR3DECL(RTTLS) RTTlsAlloc(void)
    229229{
    230230    AssertCompile(NIL_RTTLS == -1);
  • trunk/src/VBox/Runtime/r3/posix/tls-posix.cpp

    r11790 r16311  
    4343
    4444
    45 AssertCompile(sizeof(pthread_key_t) == sizeof(RTTLS));
     45AssertCompile(sizeof(pthread_key_t) <= sizeof(RTTLS));
    4646
    4747
    48 RTR3DECL(int) RTTlsAlloc(void)
     48RTR3DECL(RTTLS) RTTlsAlloc(void)
    4949{
    5050    pthread_key_t iTls = (pthread_key_t)NIL_RTTLS;
  • trunk/src/VBox/VMM/VMInternal.h

    r13791 r16311  
    400400    void                           *pvDBGC;
    401401
    402     /* TLS index for the VMINTUSERPERVMCPU pointer. */
     402    /** TLS index for the VMINTUSERPERVMCPU pointer. */
    403403    RTTLS                           idxTLS;
    404404} VMINTUSERPERVM;
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