summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-27 16:54:44 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-27 16:54:44 +0000
commit0c8fd734b3df107aad0da3791c3a3ba8a66b9ccf (patch)
tree4c4f8375fc0bc6d4502ab5285e5245430d3c1dea /memory
parente833bf7fafcb1c9356ed56e4521453b5030c7b63 (diff)
downloadlibapr-0c8fd734b3df107aad0da3791c3a3ba8a66b9ccf.tar.gz
gotta use apr_os_thread_equal() instead of comparing apr_os_thread_t
directly; the latter doesn't work on OS/390 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_sms_threads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/memory/unix/apr_sms_threads.c b/memory/unix/apr_sms_threads.c
index f701bbcde..e4ede123f 100644
--- a/memory/unix/apr_sms_threads.c
+++ b/memory/unix/apr_sms_threads.c
@@ -165,7 +165,7 @@ static void *apr_sms_threads_malloc(apr_sms_t *sms,
/* If the thread wasn't registered before, we will segfault */
thread_node = SMS_THREADS_T(sms)->hashtable[hash];
- while (thread_node->thread != thread)
+ while (!apr_os_thread_equal(thread_node->thread, thread))
thread_node = thread_node->next;
node = thread_node->used_sentinel.prev;
@@ -309,7 +309,7 @@ static apr_status_t apr_sms_threads_free(apr_sms_t *sms, void *mem)
hash = THREAD_HASH(thread);
thread_node = SMS_THREADS_T(sms)->hashtable[hash];
- while (thread_node->thread != thread)
+ while (!apr_os_thread_equal(thread_node->thread, thread))
thread_node = thread_node->next;
node->avail_size += node->first_avail -
@@ -639,7 +639,7 @@ static apr_status_t apr_sms_threads_thread_unregister(apr_sms_t *sms,
apr_lock_acquire(SMS_THREADS_T(sms)->lock);
thread_node = SMS_THREADS_T(sms)->hashtable[hash];
- while (thread_node->thread != thread)
+ while (!apr_os_thread_equal(thread_node->thread, thread))
thread_node = thread_node->next;
if ((*thread_node->ref = thread_node->next) != NULL)