From edc34e77d5f19aa2a697f16d9e2d24677dafb506 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Mon, 8 Jun 2026 10:35:16 +1000 Subject: feat(thread): Implement pthread bridge and fix allocator usage in wrapper --- src/bridges/pthread/thread_bridge.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/bridges/pthread/thread_bridge.c (limited to 'src/bridges') diff --git a/src/bridges/pthread/thread_bridge.c b/src/bridges/pthread/thread_bridge.c new file mode 100644 index 0000000..e014a3a --- /dev/null +++ b/src/bridges/pthread/thread_bridge.c @@ -0,0 +1,11 @@ +#ifdef USE_THREAD + +#include + +pthread_t run_job_in_thread(ff_thread_job *job) { + pthread_t thread; + pthread_create(&thread, NULL, ff_thread_wrapper, job); + return thread; +} + +#endif \ No newline at end of file -- cgit v1.2.3