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:
parent
0d3467d2aa
commit
50ce6bad07
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue