From b2d4a09a5621e214636593641d9799b2b1cdcf72 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 23 Mar 2025 12:46:10 +0500 Subject: Slightly refactor threading API - Hide away threading::submit overload that is meant to only be used with either a task that has been allocated using "new" or using a templated overload. Now it's called threading::detail::submit_new - Removed an unnecessary status check in mesher's Task::finalize impl --- game/shared/threading.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/shared/threading.cc') diff --git a/game/shared/threading.cc b/game/shared/threading.cc index 7e6f652..71c30e1 100644 --- a/game/shared/threading.cc +++ b/game/shared/threading.cc @@ -99,7 +99,7 @@ void threading::update(void) } } -void threading::submit(Task *task) +void threading::detail::submit_new(Task *task) { task->set_status(task_status::ENQUEUED); -- cgit