- Timestamp:
- Mar 17, 2000, 5:08:40 PM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r3128 r3140 1 /* $Id: HandleManager.cpp,v 1.3 6 2000-03-16 19:20:36sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.37 2000-03-17 16:08:38 sandervl Exp $ */ 2 2 3 3 /* … … 2940 2940 LPVOID lpvThreadParm, 2941 2941 DWORD fdwCreate, 2942 LPDWORD lpIDThread) 2942 LPDWORD lpIDThread, 2943 BOOL fFirstThread) 2943 2944 { 2944 2945 int iIndex; /* index into the handle table */ … … 2982 2983 rc = pDeviceHandler->CreateThread(&TabWin32Handles[iIndexNew].hmHandleData, 2983 2984 lpsa, cbStack, lpStartAddr, 2984 lpvThreadParm, fdwCreate, lpIDThread );2985 lpvThreadParm, fdwCreate, lpIDThread, fFirstThread); 2985 2986 2986 2987 if (rc == 0) /* oops, creation failed within the device handler */ -
trunk/src/kernel32/hmdevice.cpp
r3128 r3140 1 /* $Id: hmdevice.cpp,v 1.1 7 2000-03-16 19:20:37sandervl Exp $ */1 /* $Id: hmdevice.cpp,v 1.18 2000-03-17 16:08:39 sandervl Exp $ */ 2 2 3 3 /* … … 1189 1189 LPVOID lpvThreadParm, 1190 1190 DWORD fdwCreate, 1191 LPDWORD lpIDThread) 1191 LPDWORD lpIDThread, 1192 BOOL fFirstThread) 1192 1193 { 1193 1194 dprintf(("KERNEL32: ERROR: HandleManager::DeviceHandler::CreateThread %08xh", -
trunk/src/kernel32/hmdevice.h
r3128 r3140 1 /* $Id: hmdevice.h,v 1.1 6 2000-03-16 19:20:38sandervl Exp $ */1 /* $Id: hmdevice.h,v 1.17 2000-03-17 16:08:39 sandervl Exp $ */ 2 2 3 3 /* … … 309 309 LPVOID lpvThreadParm, 310 310 DWORD fdwCreate, 311 LPDWORD lpIDThread); 311 LPDWORD lpIDThread, 312 BOOL fFirstThread); 312 313 313 314 virtual INT GetThreadPriority(PHMHANDLEDATA pHMHandleData); -
trunk/src/kernel32/hmthread.cpp
r3128 r3140 1 /* $Id: hmthread.cpp,v 1. 1 2000-03-16 19:21:53sandervl Exp $ */1 /* $Id: hmthread.cpp,v 1.2 2000-03-17 16:08:40 sandervl Exp $ */ 2 2 3 3 /* … … 41 41 LPVOID lpvThreadParm, 42 42 DWORD fdwCreate, 43 LPDWORD lpIDThread) 43 LPDWORD lpIDThread, 44 BOOL fFirstThread) 44 45 { 45 46 Win32Thread *winthread; 46 47 48 pHMHandleData->dwInternalType = HMTYPE_THREAD; 49 pHMHandleData->dwUserData = THREAD_ALIVE; 50 51 //SvL: This doesn't really create a thread, but only sets up the 52 // handle of thread 0 53 if(fFirstThread) { 54 return O32_GetCurrentThread(); //return Open32 handle of thread 0 55 } 47 56 winthread = new Win32Thread(lpStartAddr, lpvThreadParm, fdwCreate, pHMHandleData->hHMHandle); 48 57 49 58 if(winthread == 0) 50 59 return(0); 51 52 pHMHandleData->dwInternalType = HMTYPE_THREAD;53 pHMHandleData->dwUserData = THREAD_ALIVE;54 60 55 61 #ifdef DEBUG -
trunk/src/kernel32/hmthread.h
r3128 r3140 1 /* $Id: hmthread.h,v 1. 1 2000-03-16 19:21:54sandervl Exp $ */1 /* $Id: hmthread.h,v 1.2 2000-03-17 16:08:40 sandervl Exp $ */ 2 2 3 3 /* … … 30 30 LPVOID lpvThreadParm, 31 31 DWORD fdwCreate, 32 LPDWORD lpIDThread); 32 LPDWORD lpIDThread, 33 BOOL fFirstThread); 33 34 34 35 /* this is a handler method for calls to WaitForSingleObject */ -
trunk/src/kernel32/wprocess.cpp
r3128 r3140 1 /* $Id: wprocess.cpp,v 1.7 3 2000-03-16 19:20:40 sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.74 2000-03-17 16:08:40 sandervl Exp $ */ 2 2 3 3 /* … … 138 138 return NULL; 139 139 } 140 HMHandleAllocate(&hThreadMain, O32_GetCurrentThread()); 140 //SvL: This doesn't really create a thread, but only sets up the 141 // handle of thread 0 142 hThreadMain = HMCreateThread(NULL, 0, 0, 0, 0, 0, TRUE); 141 143 } 142 144 if(OSLibAllocSel(PAGE_SIZE, &tibsel) == FALSE)
Note:
See TracChangeset
for help on using the changeset viewer.