2024-02-14 23:20:46 +01:00
|
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
typedef unsigned long int pthread_t;
|
|
|
|
typedef void *(start_routine)(void *);
|
|
|
|
int thread_create(pthread_t *thread, start_routine *func, void *arg, size_t stackSize);
|
2024-02-16 00:40:48 +01:00
|
|
|
/* retval is ignored ATM */
|
|
|
|
int thread_join(pthread_t thread, void **retval);
|