blob: 5a5ddc04f2e3f0bde6cafd570e060c7acebebf54 (
plain)
1
2
3
4
5
6
7
8
9
|
#pragma once
#include <stdlib.h>
void thread_creates(int flags, void (*fn)(void*), void *arg, void *stack);
static inline void thread_create(int flags, void (*fn)(void*), void *arg) {
/* error checking is for WIMPS. */
thread_creates(flags, fn, arg, malloc(4096) + 4096);
}
|