~ fixed initialize without shared memory
This commit is contained in:
parent
6220a99e85
commit
a42af25abc
@ -13,6 +13,7 @@ void initialize(int pid) {
|
|||||||
|
|
||||||
impl.sharedMemorySize = 8000;// NOLINT
|
impl.sharedMemorySize = 8000;// NOLINT
|
||||||
|
|
||||||
|
if(getSharedMemory() != nullptr) {
|
||||||
//set default values
|
//set default values
|
||||||
setCharactersPerRow(60);// NOLINT
|
setCharactersPerRow(60);// NOLINT
|
||||||
setCharactersPerColumn(20);// NOLINT
|
setCharactersPerColumn(20);// NOLINT
|
||||||
@ -25,6 +26,7 @@ void initialize(int pid) {
|
|||||||
setRedrawInterval(20);// NOLINT
|
setRedrawInterval(20);// NOLINT
|
||||||
setTimerInterruptInterval(10);// NOLINT
|
setTimerInterruptInterval(10);// NOLINT
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool registerEvent(EventType type, const std::function<void()> &handler) {
|
bool registerEvent(EventType type, const std::function<void()> &handler) {
|
||||||
int signum = SIGUSR1 + impl.eventTable.size();
|
int signum = SIGUSR1 + impl.eventTable.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user