~ fixed initialize without shared memory

This commit is contained in:
Julian Hinxlage 2019-11-12 15:58:00 +01:00
parent 6220a99e85
commit a42af25abc

View File

@ -13,6 +13,7 @@ void initialize(int pid) {
impl.sharedMemorySize = 8000;// NOLINT
if(getSharedMemory() != nullptr) {
//set default values
setCharactersPerRow(60);// NOLINT
setCharactersPerColumn(20);// NOLINT
@ -25,6 +26,7 @@ void initialize(int pid) {
setRedrawInterval(20);// NOLINT
setTimerInterruptInterval(10);// NOLINT
}
}
bool registerEvent(EventType type, const std::function<void()> &handler) {
int signum = SIGUSR1 + impl.eventTable.size();