diff options
Diffstat (limited to 'game/shared/threading.hh')
| -rw-r--r-- | game/shared/threading.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/game/shared/threading.hh b/game/shared/threading.hh index 083ccbf..bce4811 100644 --- a/game/shared/threading.hh +++ b/game/shared/threading.hh @@ -3,10 +3,10 @@ #pragma once enum class task_status : unsigned int { - ENQUEUED = 0x0000U, - PROCESSING = 0x0001U, - COMPLETED = 0x0002U, - CANCELLED = 0x0004U, + ENQUEUED = 0x0000U, + PROCESSING = 0x0001U, + COMPLETED = 0x0002U, + CANCELLED = 0x0004U, }; class Task { @@ -32,17 +32,17 @@ void update(void); namespace threading::detail { -void submit_new(Task *task); +void submit_new(Task* task); } // namespace threading::detail namespace threading { template<typename T, typename... AT> -void submit(AT &&... args); +void submit(AT&&... args); } // namespace threading template<typename T, typename... AT> -inline void threading::submit(AT &&... args) +inline void threading::submit(AT&&... args) { threading::detail::submit_new(new T(args...)); } |
