Skip to content

tillmanchen2015/spsc_queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

wrapper boost::lockfree::spsc_quque

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);
    

Releases

No releases published

Packages

No packages published

Languages