From 37c4373dce60b31ccc0100d85d0013aef82809e7 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Tue, 30 Aug 2022 22:55:26 +0200 Subject: implement thread pools --- src/threading/cpu.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/threading/cpu.c (limited to 'src/threading/cpu.c') diff --git a/src/threading/cpu.c b/src/threading/cpu.c new file mode 100644 index 0000000..45671df --- /dev/null +++ b/src/threading/cpu.c @@ -0,0 +1,6 @@ +#include + +int get_core_count() +{ + return get_nprocs(); +} -- cgit v1.2.3