Changeset 36555 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Apr 5, 2011 12:34:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70988
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/sched-darwin.cpp
r30111 r36555 221 221 222 222 223 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType)223 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType) 224 224 { 225 225 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); … … 255 255 256 256 257 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority)257 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority) 258 258 { 259 259 Assert(enmPriority > RTPROCPRIORITY_INVALID && enmPriority < RTPROCPRIORITY_LAST); … … 276 276 277 277 278 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)278 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 279 279 { 280 280 Assert(pThread->Core.Key == pthread_self()); -
trunk/src/VBox/Runtime/r3/linux/sched-linux.cpp
r33540 r36555 468 468 * @param enmType The thread type to be assumed for the current thread. 469 469 */ 470 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType)470 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType) 471 471 { 472 472 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); … … 549 549 * @param enmPriority The priority to validate and set. 550 550 */ 551 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority)551 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority) 552 552 { 553 553 Assert(enmPriority > RTPROCPRIORITY_INVALID && enmPriority < RTPROCPRIORITY_LAST); … … 600 600 * @param enmType The thread type. 601 601 */ 602 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)602 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 603 603 { 604 604 /* sanity */ -
trunk/src/VBox/Runtime/r3/os2/sched-os2.cpp
r28800 r36555 190 190 * @param enmType The thread type to be assumed for the current thread. 191 191 */ 192 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType)192 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType) 193 193 { 194 194 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); … … 206 206 * @remark Located in sched. 207 207 */ 208 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority)208 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority) 209 209 { 210 210 Assert(enmPriority > RTPROCPRIORITY_INVALID && enmPriority < RTPROCPRIORITY_LAST); … … 225 225 * @remark Located in sched. 226 226 */ 227 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)227 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 228 228 { 229 229 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); -
trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
r34256 r36555 64 64 65 65 66 intrtThreadNativeInit(void)66 DECLHIDDEN(int) rtThreadNativeInit(void) 67 67 { 68 68 /* … … 78 78 79 79 80 intrtThreadNativeAdopt(PRTTHREADINT pThread)80 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) 81 81 { 82 82 /* … … 95 95 96 96 97 voidrtThreadNativeDestroy(PRTTHREADINT pThread)97 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) 98 98 { 99 99 if (pThread == *g_ppCurThread) … … 134 134 135 135 136 intrtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread)136 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread) 137 137 { 138 138 /* -
trunk/src/VBox/Runtime/r3/posix/sched-posix.cpp
r33540 r36555 509 509 * @param enmType The thread type to be assumed for the current thread. 510 510 */ 511 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType)511 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType) 512 512 { 513 513 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); … … 644 644 * @param enmPriority The priority to validate and set. 645 645 */ 646 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority)646 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority) 647 647 { 648 648 Assert(enmPriority > RTPROCPRIORITY_INVALID && enmPriority < RTPROCPRIORITY_LAST); … … 740 740 * @param enmType The thread type. 741 741 */ 742 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)742 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 743 743 { 744 744 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); -
trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
r35877 r36555 90 90 91 91 92 intrtThreadNativeInit(void)92 DECLHIDDEN(int) rtThreadNativeInit(void) 93 93 { 94 94 /* … … 189 189 * @param pThread Pointer to the thread structure. 190 190 */ 191 intrtThreadNativeAdopt(PRTTHREADINT pThread)191 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) 192 192 { 193 193 /* … … 212 212 213 213 214 voidrtThreadNativeDestroy(PRTTHREADINT pThread)214 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) 215 215 { 216 216 if (pThread == (PRTTHREADINT)pthread_getspecific(g_SelfKey)) … … 264 264 265 265 266 intrtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread)266 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread) 267 267 { 268 268 /* -
trunk/src/VBox/Runtime/r3/posix/utf8-posix.cpp
r31961 r36555 57 57 * @returns Pointer to read-only string with the codeset name. 58 58 */ 59 const char *rtStrGetLocaleCodeset(void)59 DECLHIDDEN(const char *) rtStrGetLocaleCodeset(void) 60 60 { 61 61 return nl_langinfo(CODESET); … … 70 70 * @param pThread The thread in question. 71 71 */ 72 voidrtStrIconvCacheInit(PRTTHREADINT pThread)72 DECLHIDDEN(void) rtStrIconvCacheInit(PRTTHREADINT pThread) 73 73 { 74 74 for (size_t i = 0; i < RT_ELEMENTS(pThread->ahIconvs); i++) … … 81 81 * @param pThread The thread in question. 82 82 */ 83 voidrtStrIconvCacheDestroy(PRTTHREADINT pThread)83 DECLHIDDEN(void) rtStrIconvCacheDestroy(PRTTHREADINT pThread) 84 84 { 85 85 for (size_t i = 0; i < RT_ELEMENTS(pThread->ahIconvs); i++) … … 409 409 * @param enmCacheIdx The iconv cache index. 410 410 */ 411 intrtStrConvert(const char *pchInput, size_t cchInput, const char *pszInputCS,412 char **ppszOutput, size_t cbOutput, const char *pszOutputCS,413 unsigned cFactor, RTSTRICONV enmCacheIdx)411 DECLHIDDEN(int) rtStrConvert(const char *pchInput, size_t cchInput, const char *pszInputCS, 412 char **ppszOutput, size_t cbOutput, const char *pszOutputCS, 413 unsigned cFactor, RTSTRICONV enmCacheIdx) 414 414 { 415 415 Assert(enmCacheIdx >= 0 && enmCacheIdx < RTSTRICONV_END); -
trunk/src/VBox/Runtime/r3/win/sched-win.cpp
r28800 r36555 257 257 * @param enmType The thread type to be assumed for the current thread. 258 258 */ 259 intrtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType)259 DECLHIDDEN(int) rtSchedNativeCalcDefaultPriority(RTTHREADTYPE enmType) 260 260 { 261 261 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); … … 273 273 * @remark Located in sched. 274 274 */ 275 intrtProcNativeSetPriority(RTPROCPRIORITY enmPriority)275 DECLHIDDEN(int) rtProcNativeSetPriority(RTPROCPRIORITY enmPriority) 276 276 { 277 277 Assert(enmPriority > RTPROCPRIORITY_INVALID && enmPriority < RTPROCPRIORITY_LAST); … … 286 286 * @param pThread The thread. 287 287 */ 288 inline HANDLErtThreadNativeGetHandle(PRTTHREADINT pThread)288 DECLINLINE(HANDLE) rtThreadNativeGetHandle(PRTTHREADINT pThread) 289 289 { 290 290 if ((uintptr_t)pThread->Core.Key == GetCurrentThreadId()) … … 306 306 * @remark Located in sched. 307 307 */ 308 intrtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)308 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) 309 309 { 310 310 Assert(enmType > RTTHREADTYPE_INVALID && enmType < RTTHREADTYPE_END); -
trunk/src/VBox/Runtime/r3/win/thread-win.cpp
r36390 r36555 57 57 58 58 59 intrtThreadNativeInit(void)59 DECLHIDDEN(int) rtThreadNativeInit(void) 60 60 { 61 61 g_dwSelfTLS = TlsAlloc(); … … 66 66 67 67 68 voidrtThreadNativeDetach(void)68 DECLHIDDEN(void) rtThreadNativeDetach(void) 69 69 { 70 70 /* … … 81 81 82 82 83 voidrtThreadNativeDestroy(PRTTHREADINT pThread)83 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) 84 84 { 85 85 if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS)) … … 88 88 89 89 90 intrtThreadNativeAdopt(PRTTHREADINT pThread)90 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) 91 91 { 92 92 if (!TlsSetValue(g_dwSelfTLS, pThread)) … … 97 97 98 98 /** 99 * Bitch about dangling COM and OLE references, dispose of them 100 * afterwards so we don't end up deadlocked somewhere below 101 * OLE32!DllMain. 99 * Bitch about dangling COM and OLE references, dispose of them 100 * afterwards so we don't end up deadlocked somewhere below 101 * OLE32!DllMain. 102 102 */ 103 103 static void rtThreadNativeUninitComAndOle(void) … … 137 137 cOleInits = pOleTlsData->cOleInits; 138 138 } 139 } 139 } 140 140 __except(EXCEPTION_EXECUTE_HANDLER) 141 141 { 142 142 AssertFailedReturnVoid(); 143 143 } 144 145 /* 146 * Assert sanity. If any of these breaks, the structure layout above is 144 145 /* 146 * Assert sanity. If any of these breaks, the structure layout above is 147 147 * probably not correct any longer. 148 148 */ … … 156 156 if (cComInits) 157 157 { 158 AssertMsgFailed(("cComInits=%u (%#x) cOleInits=%u (%#x) - dangling COM/OLE inits!\n", 158 AssertMsgFailed(("cComInits=%u (%#x) cOleInits=%u (%#x) - dangling COM/OLE inits!\n", 159 159 cComInits, cComInits, cOleInits, cOleInits)); 160 160 … … 203 203 204 204 205 intrtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread)205 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread) 206 206 { 207 207 AssertReturn(pThread->cbStack < ~(unsigned)0, VERR_INVALID_PARAMETER);
Note:
See TracChangeset
for help on using the changeset viewer.