Add pthread_equal()

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@78 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-03-16 22:44:04 +00:00
parent 2f0bfec538
commit 223a7dcd51

View File

@ -244,6 +244,12 @@ EXTERN void pthread_yield(void);
#define pthread_self() ((pthread_t)getpid()) #define pthread_self() ((pthread_t)getpid())
/*----------------------------------------------------------*
* Compare to thread IDs.
*----------------------------------------------------------*/
#define pthread_equal(t1,t2) (t1 == t2)
/*----------------------------------------------------------* /*----------------------------------------------------------*
* Thread scheduling parameters * Thread scheduling parameters
*----------------------------------------------------------*/ *----------------------------------------------------------*/