diff --git a/client/tracy_concurrentqueue.h b/client/tracy_concurrentqueue.h index f2e190ce..732302aa 100644 --- a/client/tracy_concurrentqueue.h +++ b/client/tracy_concurrentqueue.h @@ -242,7 +242,6 @@ struct ProducerToken; struct ConsumerToken; template class ConcurrentQueue; -template class BlockingConcurrentQueue; class ConcurrentQueueTests; @@ -362,9 +361,6 @@ struct ProducerToken template explicit ProducerToken(ConcurrentQueue& queue); - template - explicit ProducerToken(BlockingConcurrentQueue& queue); - ProducerToken(ProducerToken&& other) MOODYCAMEL_NOEXCEPT : producer(other.producer) { @@ -427,9 +423,6 @@ struct ConsumerToken template explicit ConsumerToken(ConcurrentQueue& q); - template - explicit ConsumerToken(BlockingConcurrentQueue& q); - ConsumerToken(ConsumerToken&& other) MOODYCAMEL_NOEXCEPT : initialOffset(other.initialOffset), lastKnownGlobalOffset(other.lastKnownGlobalOffset), itemsConsumedFromCurrent(other.itemsConsumedFromCurrent), currentProducer(other.currentProducer), desiredProducer(other.desiredProducer) { @@ -2122,15 +2115,6 @@ ProducerToken::ProducerToken(ConcurrentQueue& queue) } } -template -ProducerToken::ProducerToken(BlockingConcurrentQueue& queue) - : producer(reinterpret_cast*>(&queue)->recycle_or_create_producer(true)) -{ - if (producer != nullptr) { - producer->token = this; - } -} - template ConsumerToken::ConsumerToken(ConcurrentQueue& queue) : itemsConsumedFromCurrent(0), currentProducer(nullptr), desiredProducer(nullptr) @@ -2139,14 +2123,6 @@ ConsumerToken::ConsumerToken(ConcurrentQueue& queue) lastKnownGlobalOffset = static_cast(-1); } -template -ConsumerToken::ConsumerToken(BlockingConcurrentQueue& queue) - : itemsConsumedFromCurrent(0), currentProducer(nullptr), desiredProducer(nullptr) -{ - initialOffset = reinterpret_cast*>(&queue)->nextExplicitConsumerId.fetch_add(1, std::memory_order_release); - lastKnownGlobalOffset = static_cast(-1); -} - template inline void swap(ConcurrentQueue& a, ConcurrentQueue& b) MOODYCAMEL_NOEXCEPT {