diff options
author | Prefetch | 2023-07-16 15:04:44 +0200 |
---|---|---|
committer | Prefetch | 2023-07-16 15:04:44 +0200 |
commit | 1a2e93c752a6b835423cd8bee609b8ec6c3f1262 (patch) | |
tree | a1c1edccbb110edc9b74b2e7ecbf47196a14c418 /linen.h |
Initial commit for publication
Diffstat (limited to 'linen.h')
-rw-r--r-- | linen.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#ifndef _LINEN_H_ +#define _LINEN_H_ + +#if (__x86_64 != 1 || __linux__ != 1 || __LP64__ != 1) + #error "Linen (libinen.so) only works on x86_64 Linux!" +#endif + +typedef int* linen_thread_t; + +extern int linen_thread_create(linen_thread_t* handle, void* (*func)(void*), void* arg); +extern int linen_thread_finish(linen_thread_t handle, void** retval); + +#endif /* _LINEN_H_ */ |