Branch: Tag:

2018-09-17

2018-09-17 10:26:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Thread.Condition: Fixed wait() to work as intended.

2682:    if ((key->prog != mutex_key) ||    (!(OB2KEY(key)->initialized)) ||    (!(mut = OB2KEY(key)->mut)) || -  (OB2KEY(key)->mutex_obj && (OB2KEY(key)->mutex_obj != c->mutex_obj))) { +  (c->mutex_obj && OB2KEY(key)->mutex_obj && +  (OB2KEY(key)->mutex_obj != c->mutex_obj))) {    Pike_error("Bad argument 1 to wait()\n");    }