summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:44:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:44:04 +0000
commit9a269ce847b12f1ce2fae4ee20f2f85f54569b38 (patch)
treeff2648e7491073abdf3412b1ca49ecf37592a8ca
parent14628151c83d690a55471b4df51949ff1c805aad (diff)
downloadnuttx-9a269ce847b12f1ce2fae4ee20f2f85f54569b38.tar.gz
nuttx-9a269ce847b12f1ce2fae4ee20f2f85f54569b38.tar.bz2
nuttx-9a269ce847b12f1ce2fae4ee20f2f85f54569b38.zip
Add pthread_equal()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@78 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/include/pthread.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/pthread.h b/nuttx/include/pthread.h
index ad907cf55..5ff44f718 100644
--- a/nuttx/include/pthread.h
+++ b/nuttx/include/pthread.h
@@ -245,6 +245,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
*----------------------------------------------------------*/