diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-06-08 10:35:16 +1000 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-06-08 10:35:16 +1000 |
| commit | edc34e77d5f19aa2a697f16d9e2d24677dafb506 (patch) | |
| tree | 2949e8b6cacf7f1d7232dfa6077de0b1c12d9326 /src/bridges/pthread/thread_bridge.c | |
| parent | c9f5da1d19e6ace5d6a7c650fe996f359e11d1a5 (diff) | |
feat(thread): Implement pthread bridge and fix allocator usage in wrapperfeat/multi-threading
Diffstat (limited to 'src/bridges/pthread/thread_bridge.c')
| -rw-r--r-- | src/bridges/pthread/thread_bridge.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <bridges/pthread/thread_bridge.h> + +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 |
