summaryrefslogtreecommitdiffstats
path: root/source/base/base_thread_linux.h
blob: 29f286359328a86e3a17bc0e872729425a947656 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef BASE_THREAD_LINUX_H
#define BASE_THREAD_LINUX_H

//- os impementations for threading
// note: keeping the implementation linux specific for now

typedef void (*ThreadProc)(void *arg);

internal b32  thread_launch(Thread *t, ThreadProc proc, void *arg);
internal void thread_join();
internal void thread_attach();
internal void thread_exit();
internal void thread_get_current();
internal void thread_compare();

internal void mutex_create();
internal void mutex_destroy();
internal void mutex_lock();
internal void mutex_unlock();

#endif