summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread/thread.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/thread/thread.c b/src/thread/thread.c
index e69de29..524c64a 100644
--- a/src/thread/thread.c
+++ b/src/thread/thread.c
@@ -0,0 +1,12 @@
+#include <tinyff/thread/thread.h>
+
+void *thread_wrapper(void *ptr) {
+ ff_thread_job *job = (ff_thread_job *)ptr;
+
+ if (job->callback) {
+ job->callback(job->arg);
+ }
+
+ free(job);
+ return NULL;
+}