Improve BlockingQueue and add SyncQueue
Changes to BlockingQueue: - Change BlockingQueue to be list-backed instead of vector-backed so that removals are O(1) instead of O(N). - Rename erase to erase_if. - Make providing a fixed capacity at construction optional. - Add emplace function to push and construct element in-place. - Add popWithTimeout function. Bug: 275726706 Test: atest inputflinger_tests Change-Id: I1be02b0887df2c21b28f4f1cb43a8e208d996a87
Loading
Please register or sign in to comment