Jump to content

Beginthread: Difference between revisions

From EDM2
attempt to doc _beginthread()
 
m A link To Creating Threads
Line 9: Line 9:
* stack_size is the size of the stack for the thread.
* stack_size is the size of the stack for the thread.
* arg is passed to thread_funcion.
* arg is passed to thread_funcion.
== See Also ==
* [[UsingThreads#Creating Threads | UsingThreads: Creating Threads]]
----


[[OS2_API:CLR | Back to C Library Reference]]
[[OS2_API:CLR | Back to C Library Reference]]

Revision as of 05:10, 5 November 2007

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.

See Also


Back to C Library Reference