aboutsummaryrefslogtreecommitdiff
path: root/src/utils/sleep.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correct OS detection for sleep functionSebastiano Tronto2025-08-131-1/+3
|
* Do all loggin in main threadSebastiano Tronto2025-05-231-0/+2
| | | | | | | | | | | | | | | | | Before this committ, the solver (via the generic solution-appender routines in src/solve/solutions.h) and the H48 data generator did some logging in the worker threads, without using any locks. This was not nice, but in practice it did not cause any problem, because the log messages were rare. However, this turned out to be a problem when building to WASM, because web workers do not have access to the main JS memory, and therefore they cannot call functions from the main JS. This includes not only the callback functions for logging, but also those for polling the status of the solver (run / pause / stop). This commit fixes this at the cost or being somewhat inelegant: the solutions are not logged as they are found, but only every 500ms.
* Added stop / pause / resume solve to APISebastiano Tronto2025-04-291-0/+48

Generated with cgit - Back to sebastiano.tronto.net