libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
thread.h
Go to the documentation of this file.
1 #ifndef _THREAD_H_
2 #define _THREAD_H_
3 
12 #include "export.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct
19 {
20  void *data;
21 } mutex;
22 
23 typedef struct
24 {
25  void *data;
26 } thread;
27 
28 typedef void (*thread_function)();
29 
34 
39 
44 
49 
54 
59 
64 
69 
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
EXPORT_SYM void mutex_unlock(mutex m)
EXPORT_SYM int mutex_trylock(mutex m)
EXPORT_SYM void thread_destroy(thread id)
EXPORT_SYM void mutex_lock(mutex m)
EXPORT_SYM mutex mutex_create(void)
EXPORT_SYM thread thread_create(thread_function func)
Definition: thread.h:23
void(* thread_function)()
Definition: thread.h:28
EXPORT_SYM void mutex_destroy(mutex m)
EXPORT_SYM void thread_wait(thread id)
void * data
Definition: thread.h:25
#define EXPORT_SYM
Definition: export.h:7
void * data
Definition: thread.h:20
Definition: thread.h:18
EXPORT_SYM void thread_start(thread id)