diff options
author | Twinaphex | 2014-12-09 13:28:17 +0100 |
---|---|---|
committer | Twinaphex | 2014-12-09 13:28:17 +0100 |
commit | 988c2e2655c7c1f724ba727f008d84e3faa6cd24 (patch) | |
tree | da7bf131f33b9ae16d2a93a0a7615a3c0b9c7535 /libco.h | |
parent | 7bb77f4fc090cadc23c3e05998ccebac7156e3cf (diff) | |
parent | e2d6ea9082a5ff977f834eda0bbb2362397422df (diff) | |
download | picogpsp-988c2e2655c7c1f724ba727f008d84e3faa6cd24.tar.gz picogpsp-988c2e2655c7c1f724ba727f008d84e3faa6cd24.tar.bz2 picogpsp-988c2e2655c7c1f724ba727f008d84e3faa6cd24.zip |
Merge pull request #2 from aliaspider/master
initial port of gpsp to libretro.
Diffstat (limited to 'libco.h')
-rw-r--r-- | libco.h | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +/* + libco + version: 0.16 (2010-12-24) + license: public domain +*/ + +#ifndef LIBCO_H +#define LIBCO_H + +#ifdef LIBCO_C + #ifdef LIBCO_MP + #define thread_local __thread + #else + #define thread_local + #endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void* cothread_t; + +cothread_t co_active(void); + +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 |