MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ShrinkThreadLocalQueue

Method ShrinkThreadLocalQueue

Sources/Shared/Core/Logger.cpp:981–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979
980#if defined(DEATH_TRACE_ASYNC)
981 void Logger::ShrinkThreadLocalQueue(std::size_t capacity) noexcept
982 {
983 using namespace Implementation;
984
985 if constexpr (DefaultQueueType == QueueType::UnboundedDropping || DefaultQueueType == QueueType::UnboundedBlocking) {
986 if (_threadContext != nullptr) {
987 _threadContext->GetSpscQueue<DefaultQueueType>().shrink(capacity);
988 }
989 }
990 }
991
992 std::size_t Logger::GetThreadLocalQueueCapacity() noexcept
993 {

Callers 1

ShrinkThreadLocalQueueFunction · 0.80

Calls 1

shrinkMethod · 0.80

Tested by

no test coverage detected