queue: add requeue, fix unqueue_matching
Synchronized with emane.git's implementation of this code which includes a unit test. This commit also fixes two bugs in unqueue_matching and one inb unqueue: - unqueue_matching was returning the wrong pointer when there was no match - both unqueue_matching and unqueue were not clearing the vacated queue entry after removing the item
parent
d449a4de
No related branches found
No related tags found
Showing
- openair2/PHY_INTERFACE/.gitignore 1 addition, 0 deletionsopenair2/PHY_INTERFACE/.gitignore
- openair2/PHY_INTERFACE/queue.c 138 additions, 51 deletionsopenair2/PHY_INTERFACE/queue.c
- openair2/PHY_INTERFACE/queue.h 21 additions, 6 deletionsopenair2/PHY_INTERFACE/queue.h
- openair2/PHY_INTERFACE/queue_test.c 201 additions, 0 deletionsopenair2/PHY_INTERFACE/queue_test.c
- openair2/PHY_INTERFACE/queue_test_run 18 additions, 0 deletionsopenair2/PHY_INTERFACE/queue_test_run
openair2/PHY_INTERFACE/.gitignore
0 → 100644
openair2/PHY_INTERFACE/queue_test.c
0 → 100644
openair2/PHY_INTERFACE/queue_test_run
0 → 100755
Please register or sign in to comment