X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fpthread.h;h=44a710197210a5cc1abd4edf6e52c74b8be2a701;hb=c07daf0f2f696392c01ad97ad23ef01aa3cdf263;hp=5d97ebf61c804c7639886f4104f6b2db57265a34;hpb=ddd87b2f10baf35ed32917bd488be8bf53ad0cc3;p=musl diff --git a/include/pthread.h b/include/pthread.h index 5d97ebf6..44a71019 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -76,8 +76,13 @@ int pthread_detach(pthread_t); void pthread_exit(void *); int pthread_join(pthread_t, void **); +#ifdef __GNUC__ +__attribute__((const)) +#endif pthread_t pthread_self(void); + int pthread_equal(pthread_t, pthread_t); +#define pthread_equal(x,y) ((x)==(y)) int pthread_setcancelstate(int, int *); int pthread_setcanceltype(int, int *);