pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-04-23
1998-04-23 23:48:17 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
2202fe4ba4b8cad71cecdc422c5684093a393be7 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
minor timesaving optimization
Rev: src/modules/files/file.c:1.92
Rev: src/threads.c:1.70
1:
#include "global.h"
-
RCSID("$Id: threads.c,v 1.
69
1998/04/
20
18
:
53
:
24
grubba
Exp $");
+
RCSID("$Id: threads.c,v 1.
70
1998/04/
23
23
:
48
:
17
hubbe
Exp $");
int num_threads = 1; int threads_disabled = 0;
158:
void exit_threads_disable(struct object *o) {
-
if(threads_disabled) threads_disabled--;
+
/* fprintf(stderr, "exit_threads_disable(): threads_disabled:%d\n", threads_disabled); */
-
+
if(threads_disabled)
+
if(!--threads_disabled)
co_broadcast(&threads_disabled_change); }