summaryrefslogtreecommitdiffstats
path: root/game/shared/threading.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
committeruntodesu <kirill@untode.su>2025-06-25 00:44:36 +0500
commit88c01588aa0830e219eaa62588839e4d1e2883ce (patch)
tree602bb27dd3399aab4aae8c19630e3b7a8dac824b /game/shared/threading.hh
parent99cf6cca8dbbc1e563c10cf0167432d3d8af9783 (diff)
downloadvoxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.tar.bz2
voxelius-88c01588aa0830e219eaa62588839e4d1e2883ce.zip
Clang-format the entire source code
Diffstat (limited to 'game/shared/threading.hh')
-rw-r--r--game/shared/threading.hh14
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...));
}