Changeset 7532 for trunk/src/kernel32/thread.cpp
- Timestamp:
- Dec 3, 2001, 1:13:10 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/thread.cpp
r7519 r7532 1 /* $Id: thread.cpp,v 1.3 7 2001-12-01 20:41:37sandervl Exp $ */1 /* $Id: thread.cpp,v 1.38 2001-12-03 12:13:10 sandervl Exp $ */ 2 2 3 3 /* … … 39 39 ODINDEBUGCHANNEL(KERNEL32-THREAD) 40 40 41 42 // The function GetThreadTEB() is defined in wprocess.cpp 43 // This macro is for performance improvement only. 44 // DWORD TIBFlatPtr is exported from wprocess.cpp 45 #define GetThreadTEB() (TIBFlatPtr) ? ((TEB *)*TIBFlatPtr) : 0 46 41 static ULONG priorityclass = NORMAL_PRIORITY_CLASS; 47 42 48 43 //****************************************************************************** … … 74 69 return teb->o.odin.hThread; 75 70 } 76 71 //****************************************************************************** 77 72 // these two debugging functions allow access to a 78 73 // calldepth counter inside the TEB block of each thread 74 //****************************************************************************** 79 75 ULONG WIN32API dbg_GetThreadCallDepth() 80 76 { … … 91 87 #endif 92 88 } 93 94 89 //****************************************************************************** 90 //****************************************************************************** 95 91 void WIN32API dbg_IncThreadCallDepth() 96 92 { … … 103 99 #endif 104 100 } 105 106 101 //****************************************************************************** 107 102 #define MAX_CALLSTACK_SIZE 128 103 //****************************************************************************** 108 104 void WIN32API dbg_ThreadPushCall(char *pszCaller) 109 105 { … … 130 126 #endif 131 127 } 132 133 128 //****************************************************************************** 129 //****************************************************************************** 134 130 void WIN32API dbg_DecThreadCallDepth() 135 131 { … … 142 138 #endif 143 139 } 144 145 140 //****************************************************************************** 141 //****************************************************************************** 146 142 void WIN32API dbg_ThreadPopCall() 147 143 { … … 165 161 #endif 166 162 } 167 163 //****************************************************************************** 164 //****************************************************************************** 168 165 char* WIN32API dbg_GetLastCallerName() 169 166 { … … 187 184 return NULL; 188 185 } 189 190 191 186 //****************************************************************************** 192 187 //****************************************************************************** … … 247 242 //****************************************************************************** 248 243 //****************************************************************************** 244 VOID WIN32API Sleep(DWORD mSecs) 245 { 246 dprintf2(("KERNEL32: Sleep %d", mSecs)); 247 OSLibDosSleep(mSecs); 248 } 249 //****************************************************************************** 250 //****************************************************************************** 251 DWORD WIN32API GetPriorityClass(HANDLE hProcess) 252 { 253 dprintf(("KERNEL32: GetPriorityClass %x", hProcess)); 254 return priorityclass; 255 // return O32_GetPriorityClass(hProcess); 256 } 257 //****************************************************************************** 258 //****************************************************************************** 259 BOOL WIN32API SetPriorityClass(HANDLE hProcess, DWORD dwPriority) 260 { 261 dprintf(("KERNEL32: SetPriorityClass %x %x", hProcess, dwPriority)); 262 priorityclass = dwPriority; 263 return TRUE; 264 // return O32_SetPriorityClass(hProcess, dwPriority); 265 } 266 //****************************************************************************** 267 //****************************************************************************** 249 268 Win32Thread::Win32Thread(LPTHREAD_START_ROUTINE pUserCallback, LPVOID lpData, DWORD dwFlags, HANDLE hThread) 250 269 {
Note:
See TracChangeset
for help on using the changeset viewer.