vbox的更動 6946 路徑 trunk/src/VBox/Runtime/r3/os2
- 時間撮記:
- 2008-2-14 下午12:59:57 (17 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
r6944 r6946 279 279 280 280 281 RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor , uint32_t fFlags)281 RTR3DECL(int) RTTlsSetDestructor(RTTLS iTls, PFNRTTLSDTOR pfnDestructor) 282 282 { 283 283 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 290 PFNRTTLSDTOR RTTlsGetDestructor(RTTLS iTls, PFNRTTLSDTOR *ppfnDestructor) 291 { 292 unsigned fFlags; 295 293 errno = 0; 296 *ppfnDestructor = __libc_TLSGetDestructor(iTls, pFlags);294 *ppfnDestructor = (PFNRTTLSDTOR)__libc_TLSGetDestructor(iTls, &fFlags); 297 295 if (!*ppfnDestructor && errno) 298 296 return RTErrConvertFromErrno(errno);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器