1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

provide a way to detect a destroyed list

This commit is contained in:
Steffen Vogel 2016-09-30 19:55:39 -04:00
parent 0d3467d2aa
commit 50ce6bad07

View file

@ -57,7 +57,7 @@ void list_destroy(struct list *l, dtor_cb_t destructor, bool release)
l->array = NULL;
l->length =
l->length = -1;
l->capacity = 0;
pthread_mutex_unlock(&l->lock);