commit | 9205e486091c3901d0e5aa9a0384dc07dae6114d | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sun Aug 14 15:17:36 2011 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sun Aug 14 15:17:36 2011 -0400 |
tree | 6b8a66e6cd13395ba9cbc3dbafe0cdc1b558437c | |
parent | ef9dd035344de750ed9420bd3e4bc5c2b7475dba [diff] [blame] |
macro for pthread_equal no sense bloating apps with a function call for an equality comparison...
diff --git a/include/pthread.h b/include/pthread.h index a0af20f..44a7101 100644 --- a/include/pthread.h +++ b/include/pthread.h
@@ -80,7 +80,9 @@ __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 *);