Branch: Tag:

2020-03-02

2020-03-02 18:50:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Threads: Added some notes.

2345:    {    push_object(o);    } else { +  /* NB: We know that mutex_key doesn't have an lfun:_destruct() +  * that inhibits our destruct(). +  */    destruct(o);    free_object(o);    push_int(0);
2469:   #else    if(key) {    m->key=0; +  /* NB: We know that mutex_key doesn't have an lfun:_destruct() +  * that inhibits our destruct(). +  */    destruct(key); /* Will destroy m->condition if m->num_waiting is zero. */    if(m->num_waiting)    {
4273:    /* Switch back to the original interpreter struct. */    *original_interpreter = Pike_interpreter;    +  /* NB: We know that mutex_key doesn't have an lfun:_destruct() +  * that inhibits our destruct(). +  */    destruct(backend_thread_obj);    free_object(backend_thread_obj);    backend_thread_obj = NULL;