more literals, use some in PIP, small refactor PIThread::start (clang-format mistakes)

This commit is contained in:
2023-07-02 14:02:10 +03:00
parent 54d0ba1876
commit ccae1a7311
15 changed files with 530 additions and 294 deletions

View File

@@ -19,6 +19,7 @@
#include "pisingleapplication.h"
#include "piliterals.h"
#include "pisharedmemory.h"
@@ -61,7 +62,7 @@
//!
#define SHM_SIZE 1024 * 32
#define SHM_SIZE 32_KiB
PISingleApplication::PISingleApplication(const PIString & app_name): PIThread() {
@@ -75,7 +76,7 @@ PISingleApplication::PISingleApplication(const PIString & app_name): PIThread()
PISingleApplication::~PISingleApplication() {
stop();
if (!waitForFinish(5000)) terminate();
if (!waitForFinish(5_s)) terminate();
delete shm;
}