Add missing impl fn to TSLQueue
This commit is contained in:
parent
04d8abab84
commit
ebedd06fdb
1 changed files with 9 additions and 0 deletions
|
@ -222,6 +222,15 @@ void TSLQueue<T>::clear() {
|
|||
iterWrapperCount = std::make_shared<void>();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool TSLQueue<T>::empty() {
|
||||
while(iterWrapperCount.use_count() > 1) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
std::lock_guard lock(mutex);
|
||||
return container.empty();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
template <bool isConst, bool isRev>
|
||||
TSLQueue<T>::TSLQIterWrapper<isConst, isRev>::TSLQIterWrapper(
|
||||
|
|
Loading…
Reference in a new issue