Branch: Tag:

2013-02-18

2013-02-18 11:25:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Threads: Fixed hang in co_wait_interpreter_timeout().

Same bug as previously fixed in co_wait_interpreter().

533:    long sec, long nsec    COMMA_DLOC_DECL)   { +  int owner = threads_disabled;    int res = pike_low_timedwait_interpreter (cond, sec, nsec    COMMA_DLOC_ARGS_OPT); -  if (threads_disabled) threads_disabled_wait (DLOC_ARGS_OPT); +  if (!owner && threads_disabled) threads_disabled_wait (DLOC_ARGS_OPT);    return res;   }