Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
0aa51e55
Commit
0aa51e55
authored
May 31, 2006
by
Browse files
remove a useless lock
git-svn-id:
file:///home/svn/mapi/trunk@582
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
69270fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
agent/agent.c
View file @
0aa51e55
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment