Parent: c5a49786e316b997352d2b54dc7c201a21d16afc
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-11-08 20:07:51
Tree: 3f01c839f43c1f280310a3399decfe48da4f91c1
shared/queue: Remove reference count from queue_entry Since the queue itself has support for reference and queue_foreach actually make use of it to prevent crashes when queue_destroy is called from the callback. Note: The intention of reference count was to protect the entry itself in queue_foreach, it may still be possible to have a crash if the next entry if freed but that should be considered an implementation bug.
Diffstat
| M | src/shared/queue.c | | | 36 | ++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | src/shared/queue.h | | | 1 | - |
2 files changed, 6 insertions(+), 31 deletions(-)