diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2019-12-01 11:33:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-01 11:33:23 +0000 |
| commit | 3fd5c3cd851d8f4dfd441141ca7e96889f069933 (patch) | |
| tree | 67f47e79f5c5bb80a3ed1b1e9d79a61c08c0a29d /core/thread/thread.odin | |
| parent | 0c0c83ee295fe8787a4bdc8b826a5432abba2ca9 (diff) | |
| parent | 99121d6ff2b02f3d16b791eb103bb9f9e8b96475 (diff) | |
Merge pull request #458 from Tetralux/linux-threads
Implement core:thread and core:sync on Unix using pthreads
Diffstat (limited to 'core/thread/thread.odin')
| -rw-r--r-- | core/thread/thread.odin | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/thread/thread.odin b/core/thread/thread.odin new file mode 100644 index 000000000..c326b30f1 --- /dev/null +++ b/core/thread/thread.odin @@ -0,0 +1,15 @@ +package thread; + +import "core:runtime"; + +Thread_Proc :: #type proc(^Thread); + +Thread :: struct { + using specific: Thread_Os_Specific, + procedure: Thread_Proc, + data: rawptr, + user_index: int, + + init_context: runtime.Context, + use_init_context: bool, +}
\ No newline at end of file |