DNF 3: better performance and a move to C++
DNF 3: better performance and a move to C++
Posted Mar 29, 2018 6:54 UTC (Thu) by rvfh (guest, #31018)In reply to: DNF 3: better performance and a move to C++ by marcH
Parent article: DNF 3: better performance and a move to C++
I am using C++11 and have no malloc/free nor new/delete in my code at all. All is managed using either unique or shared pointers.
In the same way, C++ always to not lock/unlock a mutex, but take an object that locks at construction and unlocks at destruction.
This allows for rather safe (as in: no deadlock, no memory leak, no dangling pointers) code already!
And of course there is much more...
In the same way, C++ always to not lock/unlock a mutex, but take an object that locks at construction and unlocks at destruction.
This allows for rather safe (as in: no deadlock, no memory leak, no dangling pointers) code already!
And of course there is much more...