Category:Libco

From Rosetta Code
Library
This is an example of a library. You may see a list of other libraries used on Rosetta Code at Category:Solutions by Library.

libco is a tiny library that adds cooperative multithreading, also known as coroutines, to the C language.

typedef void* cothread_t;
 
cothread_t co_active();
cothread_t co_create(unsigned int heapsize, void (*coentry)(void));
void co_delete(cothread_t cothread);
void co_switch(cothread_t cothread);

You can get libco from http://byuu.org/programming/

Pages in category "Libco"

The following 2 pages are in this category, out of 2 total.