version 4.5.0

PIThread::stopAndWait now returns bool
PIKbdListener on Linux now use piwaitevent_p and can immediately stop
new base method piZeroMemory, also migrate all "memset 0" to piZeroMemory
This commit is contained in:
2024-12-29 11:48:24 +03:00
parent 49713ddc57
commit 15548de79c
27 changed files with 121 additions and 89 deletions

View File

@@ -421,11 +421,12 @@ int main(int argc, char * argv[]) {
if (sapp) CONNECTU(sapp, messageReceived, menu, messageFromApp);
if (cli.hasArgument("silent")) {
PICout::setOutputDevices(PICout::Console);
PIKbdListener ls;
PIKbdListener ls(0, 0, false);
ls.enableExitCapture(PIKbdListener::F10);
ls.start();
WAIT_FOR_EXIT
ls.stopAndWait();
while (!PIKbdListener::exiting)
piMSleep(PIP_MIN_MSLEEP * 5);
if (!ls.stopAndWait(1_s)) ls.terminate();
} else {
screen->start();
screen->waitForFinish();