From 37a7bd95042c19d7334b099d50ac6dc8e07e4b4e Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 07 七月 2020 16:40:51 +0800 Subject: [PATCH] update --- test/test_queue.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_queue.c b/test/test_queue.c index db760fd..f91d24f 100644 --- a/test/test_queue.c +++ b/test/test_queue.c @@ -29,10 +29,10 @@ - struct timespec timeout = {5, 0}; + struct timespec timeout = {1, 0}; i = 0; - while((queue->pop(item)) ) { + while((queue->pop_timeout(item, &timeout)) ) { cout << i << " pop锛�" << item.pic << ", " << item.info << endl; // cout << item.pic << endl; i++; -- Gitblit v1.8.0