colla/coroutine.c
snarmph 59b55c7f6c added:
dir -> directory walker similar to dirent
    dirwatch -> lets you watch a directory for changes in another thread
    vec -> generic vector
2021-10-25 01:32:31 +01:00

11 lines
No EOL
173 B
C

#include "coroutine.h"
coroutine_t coInit() {
return (coroutine_t) {
.state = 0
};
}
bool coIsDead(coroutine_t co) {
return co.state == -1;
}