From 51096becb9478092970bca4108ce4c32cdadf0a0 Mon Sep 17 00:00:00 2001 From: ps Date: Mon, 17 Jan 2011 21:01:35 +0000 Subject: [PATCH] fix small detail and naming, because on win32 pthread_t<>unsigned long --- src/hermes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hermes.cpp b/src/hermes.cpp index baabc03..491668a 100644 --- a/src/hermes.cpp +++ b/src/hermes.cpp @@ -352,10 +352,10 @@ void *cleaner_thread_run(void *) return NULL; } -void remove_thread_from_list(pthread_t thread) +void remove_child_from_childlist(unsigned long child_id) { pthread_mutex_lock(&childrenlist_mutex); - children.remove(thread); + children.remove(child_id); pthread_mutex_unlock(&childrenlist_mutex); } @@ -377,7 +377,7 @@ void *thread_main(void *info_stack) client.setFD(peerinfo.new_fd); p.setOutside(client); p.run(peerinfo.peer_address); - remove_thread_from_list(connection_id); + remove_child_from_childlist(connection_id); } catch(Exception &e) {