Beginthread: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Prototype: | Prototype: | ||
#include <process.h> | #include <process.h> | ||
int _beginthread( void (*thread_function)( void* ), void *stack, unsigned int stack_size, void *arg ); | int _beginthread( void (*thread_function)( void* ), | ||
void *stack, | |||
unsigned int stack_size, | |||
void *arg ); | |||
* thread_function is a pointer to the initial funcion. | * thread_function is a pointer to the initial funcion. | ||
Line 13: | Line 15: | ||
== See Also == | == See Also == | ||
* [[UsingThreads#Creating Threads | UsingThreads: Creating Threads]] | * [[UsingThreads#Creating Threads | UsingThreads: Creating Threads]] | ||
* [[C Library Reference]] | |||
[[Category:C Library Reference]] | |||
[[ | |||
Revision as of 04:12, 17 November 2016
Prototype:
#include <process.h> int _beginthread( void (*thread_function)( void* ), void *stack, unsigned int stack_size, void *arg );
- thread_function is a pointer to the initial funcion.
- stack is ignored; left for compatibility.
- stack_size is the size of the stack for the thread.
- arg is passed to thread_funcion.
Returns the thread ID of the newly created thread.