zhangmeng
2024-02-05 a3df1ad41bce6d8d3094014c6e369072e594e7be
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();
}