Memory snapshot management via memory inspection pane

This commit is contained in:
Nav
2022-12-24 02:54:20 +00:00
parent 1091966f72
commit 21c2658c43
18 changed files with 1321 additions and 14 deletions

View File

@@ -2,6 +2,7 @@
#include <mutex>
#include <QDateTime>
#include <QDate>
namespace Bloom
{
@@ -23,6 +24,16 @@ namespace Bloom
return QDateTime::currentDateTime();
}
/**
* This function calls QDateTime::currentDateTime(). See comment for DateTime::currentDateTime().
*
* @return
*/
static QDate currentDate() {
const auto lock = std::unique_lock(DateTime::systemClockMutex);
return QDateTime::currentDateTime().date();
}
/**
* The QDateTime::timeZoneAbbreviation() is a non-static member function but it may still interface with the
* system clock. This can result in race conditions when called simultaneously to QDateTime::currentDateTime(),