blob: 31681ae6179d071db2b3f2a80cd6f13d8abaa77d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <threads.h>
static int start_func(void *arg) {
int iarg = *(int *)arg;
return iarg;
}
void main(void) {
thrd_t thr;
int arg = 1;
if (thrd_create(&thr, start_func, (void *)&arg) != thrd_success) {
;
}
}
|