summaryrefslogtreecommitdiff
path: root/include/tinyff/thread
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-06-08 10:35:16 +1000
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-06-08 10:35:16 +1000
commitedc34e77d5f19aa2a697f16d9e2d24677dafb506 (patch)
tree2949e8b6cacf7f1d7232dfa6077de0b1c12d9326 /include/tinyff/thread
parentc9f5da1d19e6ace5d6a7c650fe996f359e11d1a5 (diff)
feat(thread): Implement pthread bridge and fix allocator usage in wrapperfeat/multi-threading
Diffstat (limited to 'include/tinyff/thread')
-rw-r--r--include/tinyff/thread/thread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/tinyff/thread/thread.h b/include/tinyff/thread/thread.h
index 40c09a0..1d0a644 100644
--- a/include/tinyff/thread/thread.h
+++ b/include/tinyff/thread/thread.h
@@ -3,15 +3,17 @@
#ifndef TINYFF_THREAD_H
#define TINYFF_THREAD_H
+#include <tinyff/common.h>
+
typedef void (*ff_job_cb)(void *arg);
typedef struct {
ff_job_cb callback;
void *arg;
+ ff_ctx *ctx;
} 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
+#endif \ No newline at end of file