#include "test.h" #include "shm_allocator.h" void test() { LockFreeQueue *queue = new LockFreeQueue(16); queue->push(12); int a; queue->pop(a); printf("%d\n", a); delete queue; } int main() { test(); std::cin.get(); }