Skip to content
Snippets Groups Projects
Commit 6c44f99d authored by Nadav Har'El's avatar Nadav Har'El
Browse files

Condvar: Make linked_item type unnecessary

The lock-free queue, queue_mpsc, used to assume that the record stored in
the queue has a type linked_item<T>. The template doesn't *really* need to
assume this type - all it really needs is that the queued record has inside
it a "next" pointer.

In this patch, we allow queue_mpsc to take any type LT which has a field
"LT *next". linked_item<T> is left just as an example implementation of LT,
but more importantly, the "struct wait_record" defined in the previous
patch can also be used in queue_mpsc because it has a "next" pointer.
parent a00aa4ab
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment