aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-02 00:56:06 +0000
committergingerBill <bill@gingerbill.org>2023-01-02 00:56:06 +0000
commitbfdcf900ef25566e57e46ec46683f8b6f2a9515a (patch)
tree8052c43ddf650fdb6e00026c61f4ec0214002629 /src/checker.cpp
parent54f89dd84baaf296f7f744e1d2702b2ec867b5ae (diff)
Remove `global_` prefix from `global_thread_pool_*` procedures
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index e70643940..a25d78d3d 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -4654,9 +4654,9 @@ gb_internal void check_with_workers(Checker *c, WorkerTaskProc *proc, isize tota
for (isize i = 0; i < thread_count; i++) {
- global_thread_pool_add_task(proc, thread_data+i);
+ thread_pool_add_task(proc, thread_data+i);
}
- global_thread_pool_wait();
+ thread_pool_wait();
semaphore_wait(&c->info.collect_semaphore);
}
@@ -4704,9 +4704,9 @@ gb_internal void check_collect_entities_all(Checker *c) {
if (build_context.threaded_checker) {
for (auto const &entry : c->info.files.entries) {
AstFile *f = entry.value;
- global_thread_pool_add_task(check_collect_entities_all_worker_proc, f);
+ thread_pool_add_task(check_collect_entities_all_worker_proc, f);
}
- global_thread_pool_wait();
+ thread_pool_wait();
} else {
for (auto const &entry : c->info.files.entries) {
AstFile *f = entry.value;
@@ -5350,9 +5350,9 @@ gb_internal void check_procedure_bodies(Checker *c) {
semaphore_post(&c->procs_to_check_semaphore, cast(i32)thread_count);
for (isize i = 0; i < thread_count; i++) {
- global_thread_pool_add_task(thread_proc_body, thread_data+i);
+ thread_pool_add_task(thread_proc_body, thread_data+i);
}
- global_thread_pool_wait();
+ thread_pool_wait();
semaphore_wait(&c->procs_to_check_semaphore);
isize global_remaining = c->procs_to_check_queue.count.load(std::memory_order_relaxed);