-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows, getcontext
returns an error
#11
Comments
It seems not possible to use
|
The required interface of typedef struct pth_mctx_t pth_mctx_t;
pth_mctx_switch(pth_mctx_t* , pth_mctx_t *);
pth_mctx_restore(pth_mctx_t *);
pth_mctx_set(pth_mctx_t *, void (*f)(void), char *addr_lo, char *addr_hi); |
The best possibily is to integrate |
@dinosaure Cosmopolitan Libc has pthreads support now. https://github.com/jart/cosmopolitan/releases/tag/2.1 If there's an issue with setcontext() and getcontext() that are causing issues for fibers, then let me know and I'll fix it. |
Thanks @jart, I will probably focus on that in 2~3 weeks 👍 - It's currently on top of my TODO list. |
Awesome to hear! Looking forward to seeing where it goes. |
FIxed by #28 which uses Cosmopolitan 2.2 (which has |
It seems that
getcontext
returns a error and it's impossible forpth
to spawn a new thread. Due to this error, a SEGFAULT is reached at one point where no threads was launched butpth_key_setdata
expects a current one. I will try to find if the error come from Cosmopolitan or if it's a real barrier.The text was updated successfully, but these errors were encountered: