DosCreateThread: Difference between revisions
Appearance
m Martini moved page OS2 API:DosCreateThread to OS2 API:CPI:DosCreateThread |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; tid - [[ | ; tid - [[PTID]] - output : Thread ID | ||
; function - [[ | ; function - [[PFNTHREAD]] - input : Function to run in new therad | ||
; parameter - [[ | ; parameter - [[ULONG]] - input : Parameter passed to function | ||
; flags - | ; flags - ULONG - input : Flags for the new thread | ||
; stacksize - | ; stacksize - ULONG - input : Stack size for the new thread | ||
=== Prototype === | === Prototype === | ||
Line 20: | Line 15: | ||
ULONG flags, | ULONG flags, | ||
ULONG stack_size ); | ULONG stack_size ); | ||
=== Define C/C++ === | === Define C/C++ === | ||
INCL_DOSPROCESS | INCL_DOSPROCESS | ||
=== Notes === | === Notes === | ||
;OS Version Introduced:OS/2 1.0 | |||
OS/2 1.0 | |||
== See Also == | == See Also == | ||
*[[DosExit]] | |||
*[[UsingThreads#Creating Threads | UsingThreads: Creating Threads]] | |||
[[Category:Dos]] | |||
[[Category: |
Revision as of 21:24, 15 November 2016
DosCreateThread
- DosCreaeThread( tid, function, parameter, flags, stacksize )
- Create another thread that runs function.
Parameters
- tid - PTID - output
- Thread ID
- function - PFNTHREAD - input
- Function to run in new therad
- 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