Add missing impl fn to TSLQueue

This commit is contained in:
Stephen Seo 2019-10-24 17:51:40 +09:00
parent 04d8abab84
commit ebedd06fdb

View file

@ -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(