You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
I'd love to work on this, though can't say for sure that I'll find the necessary time. Looking at the unimplemented pthread_* stubs in c-scape/src/lib.rs, I'm immediately surprised thta so many of these functions don't have any arguments, e.g. all of pthread_cond_init / pthread_cond_signal / pthread_cond_destroy. We'll see where this goes... 🙂
Sounds great! Feel free to ask questions. The missing arguments thing is just laziness :-}. extern "C" functions kind of work if you pass them more arguments they expect, and it's a little easier to define stubs that way. To implement actually implement them, we'll need to use the proper signatures.
Take a look at PthreadMutexT and PthreadMutexattrT for examples of how to implement PthreadCondT (aka pthread_cond_t) and PthreadCondattrT (aka pthread_condattr_t).
I don't think I'll have much time to work on this over the next week, if sbd. else is interested in picking the work up where I left it (all I did so far is figuring out how to define the two libc types and updating the related function signatures), feel free to.
Activity
jplatte commentedon Oct 8, 2021
I'd love to work on this, though can't say for sure that I'll find the necessary time. Looking at the unimplemented
pthread_*stubs inc-scape/src/lib.rs, I'm immediately surprised thta so many of these functions don't have any arguments, e.g. all ofpthread_cond_init/pthread_cond_signal/pthread_cond_destroy. We'll see where this goes... 🙂sunfishcode commentedon Oct 8, 2021
Sounds great! Feel free to ask questions. The missing arguments thing is just laziness :-}.
extern "C"functions kind of work if you pass them more arguments they expect, and it's a little easier to define stubs that way. To implement actually implement them, we'll need to use the proper signatures.Take a look at
PthreadMutexTandPthreadMutexattrTfor examples of how to implementPthreadCondT(akapthread_cond_t) andPthreadCondattrT(akapthread_condattr_t).jplatte commentedon Oct 25, 2021
I don't think I'll have much time to work on this over the next week, if sbd. else is interested in picking the work up where I left it (all I did so far is figuring out how to define the two libc types and updating the related function signatures), feel free to.
sunfishcode commentedon Jun 21, 2022
As an update here, mustang is no longer using parking_lot, so now this should use
origin::CondVarinstead.Implement pthread_cond*.
Implement pthread_cond*.
Implement pthread_cond*.