FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
template<class T, class List = std::list<T>>
bool
Queue
< T, List >::move
(
std::list< T > &
x
,
typename std::list< T >::iterator
i
)
inline
Definition at line
168
of file
queue.h
.
170
{
171
const
std::lock_guard<std::mutex> lock(
fMutex
);
172
if
(
fState
==
kIdle
)
173
return
false
;
174
175
fList
.splice(
fList
.end(), x,
i
);
176
fSize
++;
177
178
fCond
.notify_one();
179
180
return
true
;
181
}
Queue::fList
List fList
Definition:
Queue.h:32
Queue::fState
state_t fState
Definition:
Queue.h:48
i
int i
Definition:
db_dim_client.c:21
Queue::kIdle
Definition:
Queue.h:39
Queue::fCond
std::condition_variable fCond
Definition:
Queue.h:35
Queue::fMutex
std::mutex fMutex
Definition:
Queue.h:34
Queue::fSize
size_t fSize
Definition:
Queue.h:30
Queue
Generated on Sun Sep 18 2016 20:50:56 for FACT++ by
1.8.11