Changeset 116 for trunk/src/helpers/threads.c
- Timestamp:
- Nov 1, 2001, 6:43:18 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/threads.c
r100 r116 146 146 // run thread func 147 147 ((PTHREADFUNC)pti->pThreadFunc)(pti); 148 149 148 WinDestroyMsgQueue(pti->hmq); 150 151 149 } 152 150 WinTerminate(pti->hab); … … 247 245 * the HMQ in its THREADINFO. These are automatically 248 246 * destroyed when the thread terminates. 247 * 248 * WARNING: Be careful with this setting for short-lived 249 * threads which are started synchronously while some 250 * other thread is locking PM, e.g. in a WinSendMsg 251 * call. While creation of the thread will still 252 * succeed, the thread will _not_ terminate properly 253 * while PM is locked, so do not wait for such a thread 254 * to terminate!! (V0.9.16) 249 255 * 250 256 * -- THRF_WAIT: if this is set, thrCreate does not … … 288 294 *@@changed V0.9.9 (2001-03-14) [umoeller]: added THRF_WAIT_EXPLICIT 289 295 *@@changed V0.9.12 (2001-05-20) [umoeller]: changed pfRunning to ptidRunning 296 *@@changed V0.9.16 (2001-10-28) [umoeller]: made ptidRunning volatile to prohibit compiler optimizations 290 297 */ 291 298 292 299 ULONG thrCreate(PTHREADINFO pti, // out: THREADINFO data 293 300 PTHREADFUNC pfn, // in: _Optlink thread function 294 PULONG ptidRunning, // out: variable set to TID while thread is running; 301 volatile unsigned long *ptidRunning, 302 // out: variable set to TID while thread is running; 295 303 // ptr can be NULL 296 304 const char *pcszThreadName, // in: thread name (for identification)
Note:
See TracChangeset
for help on using the changeset viewer.