DragonProbe/libco/libco.h

17 lines
370 B
C
Raw Normal View History

2021-06-28 23:03:02 +00:00
// vim: set et:
2021-06-08 00:22:54 +00:00
/* derived from libco v20, by byuu (ISC) */
#ifndef LIBCO_H_
#define LIBCO_H_
typedef void* cothread_t;
cothread_t co_active(void);
cothread_t co_derive(void* memory, unsigned int heapsize, void (*coentry)(void/***/)/*, void* ud*/);
void co_switch(cothread_t); // should we make this return void* (and thus `ud`)?
2021-06-08 00:22:54 +00:00
int co_serializable(void);
#endif