Jump to content

DosCreateThread: Difference between revisions

From EDM2
m Added links
Reformatting (not much of new info)
Line 1: Line 1:
Prototype:
=== DosCreateThread ===
; DosCreaeThread( tid, function, parameter, flags, stacksize ) : Create another thread that runs function.


#define INCL_DOSPROCESS
=== Parameters ===
#include <os2.h>
; tid - [[OS2 API:DataType:PTID | PTID]] - output : Thread ID
; function - [[OS2 API:DataType:PFNTHREAD | PFNTHREAD]] - input : Function to run in new therad
APIRET DosCreateThread( PTID ptid, PFNTHREAD start_function, ULONG parameter, ULONG flags, ULONG stack_size );
; parameter - [[OS2 API:DataType:ULONG | ULONG]] - input : Parameter passed to function
; flags - [[OS2 API:DataType:ULONG | ULONG]] - input : Flags for the new thread
; stacksize - [[OS2 API:DataType:ULONG | ULONG]] - input : Stack size for the new thread


----
=== Constants ===
None
 
=== Retuns ===
 
=== Prototype ===
APIRET DosCreateThread( PTID tid,
                        PFNTHREAD function,
                        ULONG parameter,
                        ULONG flags,
                        ULONG stack_size );
 
=== Module ===
 
=== Define C/C++ ===
INCL_DOSPROCESS
 
=== Export Name/Ordinal ===
 
=== Calling Convention ===
 
=== Example Code ===
 
=== Relater Functions ===
[[OS2 API:DosExit|DosExit]]
 
=== Notes ===
 
=== OS Version Introduced ===
OS/2 1.0


== See Also ==
== See Also ==

Revision as of 04:39, 8 November 2007

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

Constants

None

Retuns

Prototype

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

Module

Define C/C++

INCL_DOSPROCESS

Export Name/Ordinal

Calling Convention

Example Code

Relater Functions

DosExit

Notes

OS Version Introduced

OS/2 1.0

See Also


Back to Control Programming