From 1a2e93c752a6b835423cd8bee609b8ec6c3f1262 Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sun, 16 Jul 2023 15:04:44 +0200 Subject: Initial commit for publication --- linen.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 linen.h (limited to 'linen.h') diff --git a/linen.h b/linen.h new file mode 100644 index 0000000..ef625d0 --- /dev/null +++ b/linen.h @@ -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_ */ -- cgit v1.2.3