Update thrdpool.c

This commit is contained in:
Xie Han
2025-08-05 17:27:56 +08:00
parent f90aa3b935
commit 9745c2e054

View File

@@ -193,9 +193,6 @@ thrdpool_t *thrdpool_create(size_t nthreads, size_t stacksize)
return NULL;
}
inline void __thrdpool_schedule(const struct thrdpool_task *task, void *buf,
thrdpool_t *pool);
void __thrdpool_schedule(const struct thrdpool_task *task, void *buf,
thrdpool_t *pool)
{
@@ -216,8 +213,6 @@ int thrdpool_schedule(const struct thrdpool_task *task, thrdpool_t *pool)
return -1;
}
inline int thrdpool_in_pool(thrdpool_t *pool);
int thrdpool_in_pool(thrdpool_t *pool)
{
return pthread_getspecific(pool->key) == pool;