| 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 | { |
no test coverage detected