Changeset 36555 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Apr 5, 2011 12:34:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70988
- Location:
- trunk/src/VBox/Runtime/r3/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.