-
Notifications
You must be signed in to change notification settings - Fork 111
wait to load the stl file until file size does not change anymore #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This would be fantastic to have merged in. It's an issue that blocks using many external tools proficiently. |
Resolves #37 |
i tweaked your solution little bit to make it compile in linux again ... |
Fixes fstl-app#37. It's the approach from fstl-app#106 but using Qt only.
Sorry about that @gsohler, I didn't have time to test on my Linux setup. If it's all good for you I'm happy to merge |
it works fine in my place. just tested again |
sur5r, cant see your change in |
Not sure if you saw, but he made a separate PR |
yes, is see now. sorry for looking close enough ... his PR still suggests usleep , tough .... |
Yes that's true, but apparently it's a Qt function https://doc.qt.io/qt-5/qthread.html#usleep |
…more (fstl-app#106)" This reverts commit c4dd685.
modifications and without the differences on spaces and tabs. Also moved the test on open_action at the beginning of the load_stl method. wait to load the stl file until file size does not change anymore (fstl-app#106) * wait to load the stl file until file size does not change anymore * Use std::sleep functions for cross platform compatibility * need to include <thread> to compile --------- Co-authored-by: Guenther Sohler <guenther.sohler@photeon.com> Co-authored-by: Paul T <developer.paul.123@gmail.com>
* Revert "wait to load the stl file until file size does not change anymore (#106)" This reverts commit c4dd685. * This is a new version of the reverted commit c4dd685 with only actual modifications and without the differences on spaces and tabs. Also moved the test on open_action at the beginning of the load_stl method. wait to load the stl file until file size does not change anymore (#106) * wait to load the stl file until file size does not change anymore * Use std::sleep functions for cross platform compatibility * need to include <thread> to compile --------- Co-authored-by: Guenther Sohler <guenther.sohler@photeon.com> Co-authored-by: Paul T <developer.paul.123@gmail.com>
fstl got issues when another tool rewrites the file while its beeing displayed.
fstl will reload too fast and does not display complete file.
ideally writing tool writes a tmp file and replaces with the real file in an atomic operation.