Branch: Tag:

2003-07-24

2003-07-24 16:13:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some optionals.

Rev: lib/modules/Thread.pmod:1.40

680:   // Simulations of some of the classes for nonthreaded use.      /* Fallback implementation of Thread.Local */ - class Local + optional class Local   {    static mixed data;    mixed get() {return data;}
688:   }      /* Fallback implementation of Thread.MutexKey */ - class MutexKey (static function(:void) dec_locks) + optional class MutexKey (static function(:void) dec_locks)   {    int `!()    {
706:   }      /* Fallback implementation of Thread.Mutex */ - class Mutex + optional class Mutex   {    static int locks = 0;    static void dec_locks() {locks--;}
750:   }      // Fallback implementation of Thread.Fifo. - class Fifo + optional class Fifo   {    array buffer;    int ptr, num;
835:   }      // Fallback implementation of Thread.Queue. - class Queue + optional class Queue   {    array buffer=allocate(16);    int r_ptr, w_ptr;