wangzhengquan
2021-02-01 fb3d4aaf08075f84ed7718d2b570e6ca9e8b4a70
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();
}