Roxen.git/
server/
modules/
graphics/
graphic_text.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-03-11
1999-03-11 23:07:24 by Martin Stjernholm <mast@lysator.liu.se>
059509fd78a2070da9578d3f62a6b94f06167a04 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Actually use the thread code.
Rev: server/modules/graphics/graphic_text.pike:1.166
1:
-
constant cvs_version="$Id: graphic_text.pike,v 1.
165
1999/
02
/
15
23:
28
:
34
per
Exp $";
+
constant cvs_version="$Id: graphic_text.pike,v 1.
166
1999/
03
/
11
23:
07
:
24
mast
Exp $";
constant thread_safe=1;
-
+
#include <config.h>
#include <module.h> #include <stat.h> inherit "module";
724:
int number=0; #ifdef THREADS
-
object number_lock =
Threads
.Mutex();
+
object number_lock =
Thread
.Mutex();
#define NUMBER_LOCK() do { object __key = number_lock->lock() #define NUMBER_UNLOCK() if (__key) destruct(__key); } while(0) #else /* !THREADS */
1118:
if(res = cached_args[ q ]) return res;
+
int n;
NUMBER_LOCK(); cached_args[ number ] = f2; cached_args[ q ] = number;
-
int
n = number++;
+
n = number++;
NUMBER_UNLOCK(); remove_call_out(save_cached_args);