aboutsummaryrefslogtreecommitdiff
path: root/dep/cppformat/posix.h
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-05-31 18:57:24 +0200
committerNaios <naios-dev@live.de>2015-05-31 20:31:29 +0200
commit9a999556ece86d2910667e3d3b7a22c66c42b886 (patch)
treec2f5fe2047318d733e73a83f3bec25221420b248 /dep/cppformat/posix.h
parenteee0eebf5141b16ea2c442b1ea7176abd7600bb8 (diff)
Shared/Util: Introduce a task scheduler which schedules task with c++11 techniques.
* Use std::function as callback (methods, lamdas & std::bind). * Uses std::chrono::duration as duration type (Milliseconds, Seconds...) - With c++11 user defined literals we could just write "11s" for example (MSVS 2015, gcc & clang). * Provides a lot of overloads for easier usage: - Static durations or random durations between min and max. - Named (with group ids - group id 0 is possible) or anonymous tasks. - Asynchronous tasks. * Is adapted to the current needs of scripting: - Repeat tasks through the TaskContext - Schedule new tasks from the context. - Provides access to the times repeat counter of a task, this will help to schedule multi step events (dialogs for example). See https://gist.github.com/Naios/6d143538abdc3d32fd2b for usage examples. (cherry picked from commit da77a90aa98bc6e34c001ca871700cec7c6e5017)
Diffstat (limited to 'dep/cppformat/posix.h')
0 files changed, 0 insertions, 0 deletions