mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
1012020035
* IopThreadRecord -> IopThread * add libco * Use cooperative threading for IOP threads * Ugly solution for overlord start Needs to run in a thread * Clean out thread shutdown logic * Update comments
23 lines
380 B
C
Vendored
Generated
23 lines
380 B
C
Vendored
Generated
#ifndef LIBCO_H
|
|
#define LIBCO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void* cothread_t;
|
|
|
|
cothread_t co_active(void);
|
|
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(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* ifndef LIBCO_H */
|
|
#endif
|