-
Notifications
You must be signed in to change notification settings - Fork 0
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
src/XBox.cpp:26:22: error: ‘chrono_literals’ is not a namespace-name #128
Comments
Hi, raph - The purpose is to wait a specified time and produce a message if the wait runs out. The time is specified via This is the chunk of code in question:
It could be replaced with the previous commit:
|
As decision of And I'm not sure why you need |
The intent is to display the message if the load time takes longer than 750ms. This requires two activities: a timer and the file-load. One or the other has to run in a separate thread. Here's some pseudo-code suggesting how it might be done by running the timer in a separate thread. (I don't know off-hand how
|
I have some similar solution to display something current FLTK window to be displayed by timer as this video. 2023-03-07.09.47.31.clipped.mp4A pthread is looping to grab images, and changes something to be displayed, but FLTK update always slow and even macOS cannot display update non-main thread. Part of timer flags
Calling timer anywhere in thread
Process timer callback with flag bits
Doing like this, as an asynchronous update by timer. |
Yes, we're both on the same page with this. The similar situation in YAIV is the "file scan" pthread in The I'd do it differently if this was an involved background process with expensive impact on the GUI. |
In case I've misunderstood something : is using |
Nope ! Not a problem, That's all right :) |
Dear Kevin,
I'm working on merging your latest version of YAIV to mine, and fixing compilation errors for some other platform - Embedded Linux Kernel 4.4.179 - with 6.3.0, and occurs some unsupported issue on XBox.cpp with chrono_literals.
Looks
std::chrono_literals
is supported since c++14, and most modern compilers may should support this features, but some compilers are still not.Is there some reason to used chron_literals to used durations or calculating elapse time period ?
Please let me know to support old compilers :).
The text was updated successfully, but these errors were encountered: