coiopp/libco/libco.h
Moritz Bitsch c925553326 Initial import of coiopp
coiopp grew out of coio library
2020-06-29 12:03:09 +02:00

29 lines
434 B
C
Executable file

/*
libco v20 (2019-10-16)
author: byuu
license: ISC
*/
#ifndef LIBCO_H
#define LIBCO_H
#ifdef __cplusplus
extern "C" {
#endif
typedef void* cothread_t;
cothread_t co_active();
cothread_t co_derive(void*, unsigned int, void (*)(void));
cothread_t co_create(unsigned int, void (*)(void));
void co_delete(cothread_t);
void co_switch(cothread_t);
int co_serializable();
#ifdef __cplusplus
}
#endif
/* ifndef LIBCO_H */
#endif