Branch: Tag:

2003-05-16

2003-05-16 13:54:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

More fixes in the fallback Fifo.

Rev: lib/modules/Thread.pmod:1.39

808:    return ret;    }    -  int write(mixed value) -  { -  if (num == sizeof(buffer)) error ("Deadlock detected - fifo full.\n"); -  write_unlocked (value); -  return num; -  } -  +     int try_write(mixed value)    {    if (num == sizeof (buffer)) return 0;
822:    return ++num;    }    +  int write(mixed value) +  { +  if (!try_write(value)) error("Deadlock detected - fifo full.\n"); +  return num; +  } +     static void create(int|void size)    {    write_tres=0;