summaryrefslogtreecommitdiff
path: root/context/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'context/worker.c')
-rw-r--r--context/worker.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/context/worker.c b/context/worker.c
new file mode 100644
index 0000000..647c6f3
--- /dev/null
+++ b/context/worker.c
@@ -0,0 +1,16 @@
+#include <stdbool.h>
+#include <stdio.h>
+
+void *outfunc(int);
+bool done = false;
+
+void worker(char *q)
+{
+ printf("ptr %p\n", q);
+ for (int i = 0; i < 20; i++)
+ {
+ outfunc(i);
+ }
+
+ done = true;
+}