Changeset 15 for trunk/src/kernel32/thread.cpp
- Timestamp:
- May 31, 1999, 9:22:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/thread.cpp
r4 r15 1 /* $Id: thread.cpp,v 1. 1 1999-05-24 20:19:48 ktkExp $ */1 /* $Id: thread.cpp,v 1.2 1999-05-31 19:22:44 phaller Exp $ */ 2 2 3 3 /* … … 32 32 return(0); 33 33 34 dprintf(("CreateThread\n")); 34 dprintf(("CreateThread (%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n", 35 lpsa, 36 cbStack, 37 lpStartAddr, 38 lpvThreadParm, 39 fdwCreate, 40 lpIDThread)); 41 35 42 return(O32_CreateThread(lpsa, cbStack, winthread->GetOS2Callback(), (LPVOID)winthread, fdwCreate, lpIDThread)); 36 43 } … … 40 47 { 41 48 dprintf(("GetCurrentThreadId\n")); 49 42 50 return(O32_GetCurrentThreadId()); 43 51 } … … 53 61 BOOL WIN32API GetExitCodeThread(HANDLE hThread, LPDWORD arg2) 54 62 { 55 dprintf(("GetExitCodeThread\n")); 63 dprintf(("GetExitCodeThread (%08xh,%08xh)\n", 64 hThread, 65 arg2)); 66 56 67 return O32_GetExitCodeThread(hThread, arg2); 57 68 } … … 60 71 BOOL WIN32API TerminateThread(HANDLE hThread, DWORD arg2) 61 72 { 62 dprintf(("TerminateThread\n")); 73 dprintf(("TerminateThread (%08xh,%08xh)\n", 74 hThread, 75 arg2)); 76 63 77 return O32_TerminateThread(hThread, arg2); 64 78 } … … 67 81 DWORD WIN32API ResumeThread(HANDLE hThread) 68 82 { 69 dprintf(("ResumeThread\n")); 83 dprintf(("ResumeThread (%08xh)\n", 84 hThread)); 85 70 86 return O32_ResumeThread(hThread); 71 87 } … … 74 90 INT WIN32API GetThreadPriority(HANDLE hThread) 75 91 { 76 dprintf(("OS2GetThreadPriority\n")); 92 dprintf(("OS2GetThreadPriority(%08xh)\n", 93 hThread)); 94 77 95 return O32_GetThreadPriority(hThread); 78 96 } … … 81 99 DWORD WIN32API SuspendThread(HANDLE hThread) 82 100 { 83 dprintf(("OS2SuspendThread\n")); 101 dprintf(("OS2SuspendThread %08xh)\n", 102 hThread)); 103 84 104 return O32_SuspendThread(hThread); 85 105 } … … 88 108 BOOL WIN32API SetThreadPriority(HANDLE hThread, int priority) 89 109 { 90 dprintf(("OS2SetThreadPriority\n")); 110 dprintf(("OS2SetThreadPriority (%08xh,%08xh)\n", 111 hThread 112 priority)); 113 91 114 return O32_SetThreadPriority(hThread, priority); 92 115 } … … 95 118 VOID WIN32API ExitThread(DWORD exitcode) 96 119 { 97 dprintf(("ExitThread\n")); 120 dprintf(("ExitThread (%08xu)\n", 121 exitcode)); 122 98 123 O32_ExitThread(exitcode); 99 124 } … … 103 128 { 104 129 lpUserData = lpData; 105 pCallback = pUserCallback;130 pCallback = pUserCallback; 106 131 } 107 132 //****************************************************************************** … … 127 152 delete me; //only called once 128 153 129 dprintf(("Win32ThreadProc %d\n", GetCurrentThreadId())); 154 dprintf(("Win32ThreadProc %d\n", 155 GetCurrentThreadId())); 156 130 157 ReplaceExceptionHandler(); 131 158 return(winthread(userdata));
Note:
See TracChangeset
for help on using the changeset viewer.