Branch: Tag:

1999-12-09

1999-12-09 01:53:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

f_sleep() now releases the interpreter lock again.

Rev: src/builtin_functions.c:1.221

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.220 1999/12/08 21:19:21 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.221 1999/12/09 01:53:56 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
2238:       pop_n_elems(args);    +  THREADS_ALLOW(); +     if (delay>POLL_SLEEP_LIMIT)    for (;;)    {
2262:    if (do_microsleep)    while (delay>TIME_ELAPSED)    GET_TIME_ELAPSED; +  +  THREADS_DISALLOW();   }      void f_gc(INT32 args)