1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
| #include "test.h"
| #include "shm_allocator.h"
| void test() {
|
| LockFreeQueue<int, DM_Allocator> *queue = new LockFreeQueue<int, DM_Allocator>(16);
| queue->push(12);
| int a;
| queue->pop(a);
| printf("%d\n", a);
| delete queue;
|
| }
| int main() {
|
| test();
| std::cin.get();
| }
|
|