fiber

軽量ユーザスレッドを実現するlibtaskを試してみた。

libtask。コルーチンとスケジューラがセットになっているのか。 #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "task.h" typedef int err_t; typedef struct { char *name; } my_task_t; void my_task_run(my_task_t *ctx) { printf("Hi, I am a lightw</unistd.h></stdlib.h></stdio.h></string.h>…