DosCreateThread

From EDM2
Revision as of 19:48, 26 September 2017 by Ak120 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Creates an asynchronous thread of processing under the current process.

Syntax

DosCreateThread ( tid, function, parameter, flags, stacksize )

Parameters

tid (PTID) output 
Thread ID
function (PFNTHREAD) input 
Function to run in new thread
parameter (ULONG) input 
Parameter passed to function
flags (ULONG) input 
Flags for the new thread
stacksize (ULONG) input 
Stack size for the new thread

Prototype

APIRET DosCreateThread( PTID tid, 
                        PFNTHREAD function,
                        ULONG parameter,
                        ULONG flags,
                        ULONG stack_size );

Define C/C++

INCL_DOSPROCESS

Notes

OS Version Introduced
OS/2 1.0

See Also: