diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shim.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; } |