VirtualBox

vbox的更動 6946 路徑 trunk/src/VBox/Runtime/r3/os2


忽略:
時間撮記:
2008-2-14 下午12:59:57 (17 年 以前)
作者:
vboxsync
訊息:

Aligned the TLS destructor bits with posix.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp

    r6944 r6946  
    279279
    280280
    281 RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor, uint32_t fFlags)
     281RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor)
    282282{
    283283    AssertReturn(!fFlags, VERR_INVALID_PARAMETER)
    284     if (__libc_TLSDestructor(iTls, pfnDestructor, fFlags) == -1)
    285         return VINF_SUCCESS;
    286     return RTErrConvertFromErrno(errno);
    287 }
    288 
    289 
    290 PFNRTTLSDTOR RTTlsGetDestructor(RTTLS iTls, PFNRTTLSDTOR *ppfnDestructor, uint32_t *pfFlags)
    291 {
    292     uint32_t fFlags;
    293     if (!pfFlags)
    294         pfFlags = &fFlags;
     284    if (__libc_TLSDestructor(iTls, (void (*)(void *, int, unsigned))pfnDestructor, fFlags) == -1)
     285        return VINF_SUCCESS;
     286    return RTErrConvertFromErrno(errno);
     287}
     288
     289
     290PFNRTTLSDTOR RTTlsGetDestructor(RTTLS iTls, PFNRTTLSDTOR *ppfnDestructor)
     291{
     292    unsigned fFlags;
    295293    errno = 0;
    296     *ppfnDestructor = __libc_TLSGetDestructor(iTls, pFlags);
     294    *ppfnDestructor = (PFNRTTLSDTOR)__libc_TLSGetDestructor(iTls, &fFlags);
    297295    if (!*ppfnDestructor && errno)
    298296        return RTErrConvertFromErrno(errno);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette