29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
}
bool
of_thread_new(of_thread_t *thread, void (*function)(id), id object,
const of_thread_attr_t *attr)
{
*thread = CreateThread(NULL, (attr != NULL ? attr->stackSize : 0),
(LPTHREAD_START_ROUTINE)function, (__bridge void *)object, 0, NULL);
if (thread == NULL)
return false;
if (attr != NULL && attr->priority != 0) {
DWORD priority;
|
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
}
bool
of_thread_new(of_thread_t *thread, void (*function)(id), id object,
const of_thread_attr_t *attr)
{
*thread = CreateThread(NULL, (attr != NULL ? attr->stackSize : 0),
(LPTHREAD_START_ROUTINE)function, (void *)object, 0, NULL);
if (thread == NULL)
return false;
if (attr != NULL && attr->priority != 0) {
DWORD priority;
|