diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-28 11:43:01 +1000 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-05-28 11:43:01 +1000 |
| commit | 62cbefa6a8fca583c6f600f1d7e24f0c61c91b1e (patch) | |
| tree | 63d7f3b5b37b2c073bdd5a66537edbac0f7b9345 /include/tinyff/thread/thread.h | |
| parent | c898c79b30dda6bfa8d334caaea984c8a8ce8d09 (diff) | |
feat(thread): Add thread jobs and thread wrapper
Diffstat (limited to 'include/tinyff/thread/thread.h')
| -rw-r--r-- | include/tinyff/thread/thread.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/tinyff/thread/thread.h b/include/tinyff/thread/thread.h index e69de29..40c09a0 100644 --- a/include/tinyff/thread/thread.h +++ b/include/tinyff/thread/thread.h @@ -0,0 +1,17 @@ +#ifdef USE_THREAD + +#ifndef TINYFF_THREAD_H +#define TINYFF_THREAD_H + +typedef void (*ff_job_cb)(void *arg); + +typedef struct { + ff_job_cb callback; + void *arg; +} ff_thread_job; + +void *ff_thread_wrapper(void *ptr); + +// Each platform must have their own bridge for running a thread job +// Like pthreads for POSIX systems +#endif |
