Loading src/TNL/Pointers/SharedPointerCuda.h +4 −2 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading @@ -202,6 +203,7 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading src/TNL/Pointers/SharedPointerHost.h +4 −2 Original line number Diff line number Diff line Loading @@ -163,6 +163,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading @@ -174,6 +175,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading src/TNL/Pointers/SharedPointerMic.h +4 −2 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class SharedPointer< Object, Devices::MIC > : public SmartPointer this->free(); this->pd = (PointerData*) ptr.pd; this->mic_pointer = ptr.mic_pointer; if( this->pd != nullptr ) this->pd->counter += 1; #ifdef TNL_DEBUG_SHARED_POINTERS std::cerr << "Copy-assigned shared pointer: counter = " << this->pd->counter << ", type: " << demangle(typeid(ObjectType).name()) << std::endl; Loading @@ -201,6 +202,7 @@ class SharedPointer< Object, Devices::MIC > : public SmartPointer this->free(); this->pd = (PointerData*) ptr.pd; this->mic_pointer = ptr.mic_pointer; if( this->pd != nullptr ) this->pd->counter += 1; #ifdef TNL_DEBUG_SHARED_POINTERS std::cerr << "Copy-assigned shared pointer: counter = " << this->pd->counter << ", type: " << demangle(typeid(ObjectType).name()) << std::endl; Loading Loading
src/TNL/Pointers/SharedPointerCuda.h +4 −2 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading @@ -202,6 +203,7 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading
src/TNL/Pointers/SharedPointerHost.h +4 −2 Original line number Diff line number Diff line Loading @@ -163,6 +163,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading @@ -174,6 +175,7 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer { this->free(); this->pd = (PointerData*) ptr.pd; if( this->pd != nullptr ) this->pd->counter += 1; return *this; } Loading
src/TNL/Pointers/SharedPointerMic.h +4 −2 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class SharedPointer< Object, Devices::MIC > : public SmartPointer this->free(); this->pd = (PointerData*) ptr.pd; this->mic_pointer = ptr.mic_pointer; if( this->pd != nullptr ) this->pd->counter += 1; #ifdef TNL_DEBUG_SHARED_POINTERS std::cerr << "Copy-assigned shared pointer: counter = " << this->pd->counter << ", type: " << demangle(typeid(ObjectType).name()) << std::endl; Loading @@ -201,6 +202,7 @@ class SharedPointer< Object, Devices::MIC > : public SmartPointer this->free(); this->pd = (PointerData*) ptr.pd; this->mic_pointer = ptr.mic_pointer; if( this->pd != nullptr ) this->pd->counter += 1; #ifdef TNL_DEBUG_SHARED_POINTERS std::cerr << "Copy-assigned shared pointer: counter = " << this->pd->counter << ", type: " << demangle(typeid(ObjectType).name()) << std::endl; Loading