WFMPMC icon indicating copy to clipboard operation
WFMPMC copied to clipboard

A bounded wait-free(almost) zero-copy MPMC queue written in C++11, which can also reside in SHM for IPC

Results 3 WFMPMC issues
Sort by recently updated
recently updated
newest added

如果队列为空,while (try read); 是一个会把cpu core吃满的操作,在实际工程中适用范围很小。 此处需要一个std::condition_variable来等待,引入condition又会有新的问题,不是使用者直接引入就能解决的,应该还是需要wait-free队列处理好这个事情。

WFMPMC.h 57行那里,init_state我遇到了一种情况:init_state 为一个2打头的随机值,然后就卡在那行