POSIX says never to compare pthread_t directly

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16501 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene
2010-01-24 19:23:58 +00:00
parent 4f39fe92ab
commit 62341a9526
3 changed files with 17 additions and 4 deletions
+6
View File
@@ -50,6 +50,12 @@ typedef pthread_t switch_thread_id_t;
SWITCH_DECLARE(switch_thread_id_t) switch_thread_self(void);
/*! \brief Compare two thread ids
* \param tid1 1st Thread ID to compare
* \param tid2 2nd Thread ID to compare
*/
SWITCH_DECLARE(int) switch_thread_equal(switch_thread_id_t tid1, switch_thread_id_t tid2);
/*
The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions