From 223a7dcd51ccf3aa75e655fc23b771a6cd71e3ce Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 16 Mar 2007 22:44:04 +0000 Subject: [PATCH] Add pthread_equal() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@78 42af7a65-404d-4744-a932-0658087f49c3 --- include/pthread.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/pthread.h b/include/pthread.h index ad907cf552..5ff44f718e 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -244,6 +244,12 @@ EXTERN void pthread_yield(void); #define pthread_self() ((pthread_t)getpid()) +/*----------------------------------------------------------* + * Compare to thread IDs. + *----------------------------------------------------------*/ + +#define pthread_equal(t1,t2) (t1 == t2) + /*----------------------------------------------------------* * Thread scheduling parameters *----------------------------------------------------------*/