mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 14:21:23 +02:00
Add 'libco/' from commit '7871e50f7d48444f1a6333128308acb0a1c8ad2b'
git-subtree-dir: libco git-subtree-mainline:c5b39e2dfc
git-subtree-split:7871e50f7d
This commit is contained in:
28
libco/libco.h
Executable file
28
libco/libco.h
Executable file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
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
|
Reference in New Issue
Block a user