Any C-method called from within Pike always holds the interpreter lock. To run in a true multithreaded fashion you need to release this lock (which is whar THREADS_ALLOW does).
/ David Hedbor
Previous text:
2003-06-17 23:15: Subject: Re: Pike localtime(), threads safe and low level localtime() / localtime_r() ?
Le mardi, 17 jun 2003, à 19:30 Europe/Paris, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum a écrit :
There is already a mutex. f_localtime does not release the interpreter lock. Of course, it could still interfere with other threads running non-pike code, but that would not be fixed by adding another mutex.
Hum... I can't see any mutex is the builtin_function.c code...
Can you light my lantern ?
/Xavier
/ Brevbäraren