more literals, use some in PIP, small refactor PIThread::start (clang-format mistakes)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user