Commit 0aa51e55 authored by 's avatar

remove a useless lock



git-svn-id: file:///home/svn/mapi/trunk@582 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 69270fea
......@@ -21,7 +21,7 @@
extern void set_agent();
pthread_mutex_t lock;
//pthread_mutex_t lock; DELETE
int service_count;
int dimapi_port;
......@@ -372,9 +372,9 @@ void *handle_request(void *arg) {
close(sock);
/* update the global service counter */
pthread_mutex_lock(&lock);
//pthread_mutex_lock(&lock); DELETE
service_count++;
pthread_mutex_unlock(&lock);
//pthread_mutex_unlock(&lock); DELETE
printf("<+> thread %d exiting\n<+> total sockets served: %d\n", (int)pthread_self(), service_count);
pthread_exit((void *)0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment