mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
msgqueue maxlen set to 0 (unlimited).
This commit is contained in:
@@ -148,7 +148,7 @@ thrdpool_t *thrdpool_create(size_t nthreads, size_t stacksize)
|
||||
if (!pool)
|
||||
return NULL;
|
||||
|
||||
pool->msgqueue = msgqueue_create((size_t)-1, 0);
|
||||
pool->msgqueue = msgqueue_create(0, 0);
|
||||
if (pool->msgqueue)
|
||||
{
|
||||
ret = pthread_mutex_init(&pool->mutex, NULL);
|
||||
|
||||
Reference in New Issue
Block a user