Ignore:
Timestamp:
Nov 1, 2001, 6:43:18 PM (24 years ago)
Author:
umoeller
Message:

More updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/threads.c

    r100 r116  
    146146                    // run thread func
    147147                    ((PTHREADFUNC)pti->pThreadFunc)(pti);
    148 
    149148                    WinDestroyMsgQueue(pti->hmq);
    150 
    151149                }
    152150                WinTerminate(pti->hab);
     
    247245 *         the HMQ in its THREADINFO. These are automatically
    248246 *         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)
    249255 *
    250256 *      -- THRF_WAIT: if this is set, thrCreate does not
     
    288294 *@@changed V0.9.9 (2001-03-14) [umoeller]: added THRF_WAIT_EXPLICIT
    289295 *@@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
    290297 */
    291298
    292299ULONG thrCreate(PTHREADINFO pti,     // out: THREADINFO data
    293300                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;
    295303                                     // ptr can be NULL
    296304                const char *pcszThreadName, // in: thread name (for identification)
Note: See TracChangeset for help on using the changeset viewer.