summaryrefslogtreecommitdiff
path: root/threading.h
blob: 6b2b92373e03447b38b8c4711899734395a9271c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __THREADING_H
#define __THREADING_H

#include <stdint.h>

void thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx);
uintptr_t mutex_create (void);
void mutex_free (uintptr_t mtx);
int mutex_lock (uintptr_t mtx);
int mutex_unlock (uintptr_t mtx);

#endif