From 8af055d464e0c0c7556b47708346acf3ce3ca0f7 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 4 Mar 2024 10:22:15 +0400 Subject: =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D0=B0?= =?UTF-8?q?=20=D1=81=20ucontext,=20=D0=BD=D0=B0=20=D0=BA=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=20=D1=8F=20=D0=B2=D1=8B=D1=8F=D1=81=D0=BD?= =?UTF-8?q?=D1=8F=D0=BB=20=D1=87=D1=82=D0=BE=20=D0=BD=D0=B5=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=BD=D0=B0=20macos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- context/worker.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 context/worker.c (limited to 'context/worker.c') 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 +#include + +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; +} -- cgit v1.2.3