aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shim.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shim.c b/src/shim.c
index b376a7a..7bf378c 100644
--- a/src/shim.c
+++ b/src/shim.c
@@ -8,7 +8,17 @@
#include "threadpool-utils.h"
+struct pthreadpool {
+};
+
+static const struct pthreadpool static_pthreadpool = { };
+
+
struct pthreadpool* pthreadpool_create(size_t threads_count) {
+ if (threads_count <= 1) {
+ return (struct pthreadpool*) &static_pthreadpool;
+ }
+
return NULL;
}