December 21, 2024

Dynamic Windows Function [dw_thread_new]

Syntax

DWTID dw_thread_new(void *func, void *data, int stack)

Parameters

void *func: Function which will be run in the new thread.
void *data: Parameter(s) passed to the function.
int stack: Stack size of new thread (OS/2 and Windows only).

Returns

DWTID Thread ID on success or DW_ERROR_UNKNOWN (-1) on error.

Description

Creates a new thread with a starting point of func.