A cooperative multitasking library for C/C++