blob: e09bf682bf6626c7c556b759b5ae80274eaf8835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#if 0
#include <threads.h>
#include <pthread.h>
#include <errno.h>
int thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
{
SIGNAL_SAFE(0);
typedef void *(*pthread_start_fn)(void*);
switch (pthread_create(thr, 0, (pthread_start_fn)func, arg)) {
case 0:
return thrd_success;
case ENOMEM:
return thrd_nomem;
default:
break;
}
return thrd_error;
}
/*
STDC(201112)
*/
#endif
|