DosCreateThread: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Creates an asynchronous thread of processing under the current process. | ||
==Syntax== | |||
DosCreateThread ( tid, function, parameter, flags, stacksize ) | |||
=== Parameters === | === Parameters === | ||
; tid | ;tid (PTID) output : Thread ID | ||
; function | ;function (PFNTHREAD) input : Function to run in new thread | ||
; 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 17: | ||
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 | |||
See Also: | |||
*[[DosExit]] | |||
*[[UsingThreads#Creating Threads | UsingThreads: Creating Threads]] | |||
* [[UsingThreads#Creating Threads | UsingThreads: Creating Threads | |||
[[Category: | [[Category:Dos]] |
Latest revision as of 21:48, 26 September 2017
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: