use fc_queue_try_pop_to_queue from libfastcommon
parent
c1f6fb797b
commit
f72295e103
|
|
@ -3,7 +3,7 @@
|
|||
%define CommitVersion %(echo $COMMIT_VERSION)
|
||||
|
||||
Name: libserverframe
|
||||
Version: 1.1.8
|
||||
Version: 1.1.9
|
||||
Release: 1%{?dist}
|
||||
Summary: network framework library
|
||||
License: AGPL v3.0
|
||||
|
|
@ -13,9 +13,9 @@ Source: http://github.com/happyfish100/libserverframe/%{name}-%{version}.tar.gz
|
|||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: libfastcommon-devel >= 1.0.51
|
||||
BuildRequires: libfastcommon-devel >= 1.0.52
|
||||
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
|
||||
Requires: libfastcommon >= 1.0.51
|
||||
Requires: libfastcommon >= 1.0.52
|
||||
|
||||
%description
|
||||
common framework library
|
||||
|
|
|
|||
|
|
@ -131,7 +131,8 @@ static int check_report_req_receipt(struct fast_task_info *task)
|
|||
return 0;
|
||||
}
|
||||
|
||||
fc_queue_pop_to_queue(&channel->queue, &channel->waiting_resp_qinfo);
|
||||
fc_queue_try_pop_to_queue(&channel->queue,
|
||||
&channel->waiting_resp_qinfo);
|
||||
if (channel->waiting_resp_qinfo.head == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue