mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Update thrdpool.c
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user