mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:07:43 +00:00
LibC: Partially implement pthread_setcancel{state,type}()
With those partially implemented I can start to clone the SerenityOS git repository via HTTPS. The download still fails half-way through because SSL_read returns an error for reasons I haven't investigated yet.
This commit is contained in:
parent
a14a1f2d61
commit
759acdb938
2 changed files with 17 additions and 4 deletions
|
@ -97,6 +97,9 @@ int pthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const struct times
|
|||
#define PTHREAD_CANCEL_ENABLE 1
|
||||
#define PTHREAD_CANCEL_DISABLE 2
|
||||
|
||||
#define PTHREAD_CANCEL_DEFERRED 1
|
||||
#define PTHREAD_CANCEL_ASYNCHRONOUS 2
|
||||
|
||||
int pthread_cancel(pthread_t);
|
||||
int pthread_setcancelstate(int state, int* oldstate);
|
||||
int pthread_setcanceltype(int type, int* oldtype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue