mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix warning re shadowing, implicit conversion and added include <cstdio>
This commit is contained in:
@@ -1713,8 +1713,8 @@ private:
|
||||
///////////////////////////
|
||||
struct ExplicitProducer : public ProducerBase
|
||||
{
|
||||
explicit ExplicitProducer(ConcurrentQueue* parent) :
|
||||
ProducerBase(parent, true),
|
||||
explicit ExplicitProducer(ConcurrentQueue* _parent) :
|
||||
ProducerBase(_parent, true),
|
||||
blockIndex(nullptr),
|
||||
pr_blockIndexSlotsUsed(0),
|
||||
pr_blockIndexSize(EXPLICIT_INITIAL_INDEX_SIZE >> 1),
|
||||
@@ -1722,7 +1722,7 @@ private:
|
||||
pr_blockIndexEntries(nullptr),
|
||||
pr_blockIndexRaw(nullptr)
|
||||
{
|
||||
size_t poolBasedIndexSize = details::ceil_to_pow_2(parent->initialBlockPoolSize) >> 1;
|
||||
size_t poolBasedIndexSize = details::ceil_to_pow_2(_parent->initialBlockPoolSize) >> 1;
|
||||
if (poolBasedIndexSize > pr_blockIndexSize) {
|
||||
pr_blockIndexSize = poolBasedIndexSize;
|
||||
}
|
||||
@@ -2397,8 +2397,8 @@ private:
|
||||
|
||||
struct ImplicitProducer : public ProducerBase
|
||||
{
|
||||
ImplicitProducer(ConcurrentQueue* parent) :
|
||||
ProducerBase(parent, false),
|
||||
ImplicitProducer(ConcurrentQueue* _parent) :
|
||||
ProducerBase(_parent, false),
|
||||
nextBlockIndexCapacity(IMPLICIT_INITIAL_INDEX_SIZE),
|
||||
blockIndex(nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user