spsc_queue<int, 3> q(10); //10 means thread sleep 10 milliseconds. If it's 0, it's lock-free.
//3 means queue capacity.
//producer code:
q.push(100);
//consumer code:
int v;
q.pop(v);
-
Notifications
You must be signed in to change notification settings - Fork 0
tillmanchen2015/spsc_queue
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
c++ boost spsc
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published