aboutsummaryrefslogtreecommitdiff
path: root/threadproc/unix
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-06-14 18:52:09 +0000
committerJeff Trawick <trawick@apache.org>2001-06-14 18:52:09 +0000
commit81dc67fe8861d5f875e09d17bf80e2043beb1afc (patch)
tree1dfc49f30cce04b3a6df2a6a12fccdd609ef7ca7 /threadproc/unix
parente22b5bd111a88c07d9169a22c7d88648a51d29f6 (diff)
downloadapr-81dc67fe8861d5f875e09d17bf80e2043beb1afc.tar.gz
apr-81dc67fe8861d5f875e09d17bf80e2043beb1afc.zip
on some Unix platforms pthread_t is a structure and the compiler won't allow
comparison of structures add apr_os_thread_equal() and implement it on the two platforms with apr_os_thread_current() use apr_os_thread_equal() in the Unix lock code so we don't compare structures git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61768 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix')
-rw-r--r--threadproc/unix/thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c
index 8aa35e1bf..9aa49ce02 100644
--- a/threadproc/unix/thread.c
+++ b/threadproc/unix/thread.c
@@ -163,6 +163,11 @@ apr_os_thread_t apr_os_thread_current(void)
return pthread_self();
}
+int apr_os_thread_equal(apr_os_thread_t tid1, apr_os_thread_t tid2)
+{
+ return pthread_equal(tid1, tid2);
+}
+
apr_status_t apr_thread_exit(apr_thread_t *thd, apr_status_t *retval)
{
apr_pool_destroy(thd->cntxt);