libco.h 355 Bytes
Newer Older
1
/*
Screwtape's avatar
Screwtape committed
2
  libco v18.01 (2017-01-22)
Screwtape's avatar
Screwtape committed
3
  author: byuu
Talarubi's avatar
Talarubi committed
4
  license: ISC
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
*/

#ifndef LIBCO_H
#define LIBCO_H

#ifdef __cplusplus
extern "C" {
#endif

typedef void* cothread_t;

cothread_t co_active();
cothread_t co_create(unsigned int, void (*)(void));
void co_delete(cothread_t);
void co_switch(cothread_t);

#ifdef __cplusplus
}
#endif

/* ifndef LIBCO_H */
#endif