Commit Graph

8 Commits

Author SHA1 Message Date
Avi Kivity
1b99b1f170 queue: add method to abort a queue
Destroy all queued objects, blow waiting readers or writers with an
exception.
2015-06-15 16:35:48 +03:00
Avi Kivity
7f8d88371a Add LICENSE, NOTICE, and copyright headers to all source files.
The two files imported from the OSv project retain their original licenses.
2015-02-19 16:52:34 +02:00
Avi Kivity
79e8497e1d queue: add size() accessor 2014-10-30 14:08:23 +02:00
Asias He
20349885e3 queue: Add missing including of future.hh 2014-10-15 12:21:22 +03:00
Tomasz Grabiec
269b05afc2 core: add queue::push_eventually()
It's an asynchronous version of blocking push().
2014-10-06 18:34:28 +02:00
Tomasz Grabiec
57bc48ddbb core: add queue::pop_eventually()
It's an asynchronous version of blocking pop().
2014-10-06 18:34:28 +02:00
Avi Kivity
2d012e1df8 queue: switch to circular_buffer 2014-10-02 14:32:34 +03:00
Avi Kivity
acd317157b Add a future-friendly queue template
More or less a standard queue, but allows obtaining a future<> for
queue-empty conditions (for consumers) or queue-not-full conditions
(for producers)
2014-09-14 15:57:39 +03:00