diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2024-03-04 10:22:15 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2024-03-04 10:22:15 +0400 |
| commit | 8af055d464e0c0c7556b47708346acf3ce3ca0f7 (patch) | |
| tree | c49aa64cd9540136bef2cfde12f227d32741d325 /context/worker.c | |
| parent | 9323b899d930107f9f4779c707e17e5dc43c5de4 (diff) | |
Diffstat (limited to 'context/worker.c')
| -rw-r--r-- | context/worker.c | 16 |
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; +} |