mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
coroutines: get photonlib/coroutines working with GC
This commit is contained in:
parent
1f06476343
commit
9604a3f491
3 changed files with 22 additions and 2 deletions
6
thirdparty/photon/photonwrapper.h
vendored
6
thirdparty/photon/photonwrapper.h
vendored
|
@ -24,8 +24,10 @@ int photon_init_default();
|
|||
void photon_thread_create(void* (* f)(void*), void* arg);
|
||||
void photon_sleep_s(int n);
|
||||
void photon_sleep_ms(int n);
|
||||
|
||||
|
||||
void set_photon_thread_stack_allocator(
|
||||
void* (*alloc_func)(void*, size_t),
|
||||
void (*dealloc_func)(void*, void*, size_t)
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue