mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 15:22:15 +00:00
macro for pthread_equal
no sense bloating apps with a function call for an equality comparison...
This commit is contained in:
parent
ef9dd03534
commit
9205e48609
@ -80,7 +80,9 @@ int pthread_join(pthread_t, void **);
|
|||||||
__attribute__((const))
|
__attribute__((const))
|
||||||
#endif
|
#endif
|
||||||
pthread_t pthread_self(void);
|
pthread_t pthread_self(void);
|
||||||
|
|
||||||
int pthread_equal(pthread_t, pthread_t);
|
int pthread_equal(pthread_t, pthread_t);
|
||||||
|
#define pthread_equal(x,y) ((x)==(y))
|
||||||
|
|
||||||
int pthread_setcancelstate(int, int *);
|
int pthread_setcancelstate(int, int *);
|
||||||
int pthread_setcanceltype(int, int *);
|
int pthread_setcanceltype(int, int *);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
int pthread_equal(pthread_t a, pthread_t b)
|
int (pthread_equal)(pthread_t a, pthread_t b)
|
||||||
{
|
{
|
||||||
return a==b;
|
return a==b;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user