Jump to content

Beginthread: Difference between revisions

From EDM2
Add return value
mNo edit summary
Line 19: Line 19:


[[OS2_API:CLR | Back to C Library Reference]]
[[OS2_API:CLR | Back to C Library Reference]]
[[Category:The OS/2 API Project]]

Revision as of 23:55, 28 October 2011

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.

See Also


Back to C Library Reference