mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Make futexes cancellable by pthreads
This commit is contained in:
parent
2278327eba
commit
022536cab6
101 changed files with 627 additions and 391 deletions
|
@ -22,7 +22,7 @@
|
|||
/**
|
||||
* Sets scheduler parameter on thread.
|
||||
*/
|
||||
int pthread_setschedprio(pthread_t thread, int prio) {
|
||||
errno_t pthread_setschedprio(pthread_t thread, int prio) {
|
||||
struct PosixThread *pt = (struct PosixThread *)thread;
|
||||
pt->attr.__schedparam = prio;
|
||||
return _pthread_reschedule(pt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue