wangzhengquan
2020-06-12 9f2f9eed5ca905c4641b296773ac21aaa735624d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "usg_common.h"
#include "safe_queue.h"
 
#define QUEUE_SIZE 10
 
 
using namespace std;
 
int main() {
    SafeQueue<int> m_queue(10);
    m_queue.push(1);
    m_queue.push(2);
    int a;
    m_queue.pop(a);
    cout << a << endl;
    m_queue.pop(a);
    cout << a << endl;
}