[TD-225] fix compiler error.
This commit is contained in:
parent
7e84d868d9
commit
434aefb880
|
@ -36,14 +36,14 @@ int32_t tWorkerInit(SWorkerPool *pPool) {
|
||||||
void tWorkerCleanup(SWorkerPool *pPool) {
|
void tWorkerCleanup(SWorkerPool *pPool) {
|
||||||
for (int i = 0; i < pPool->max; ++i) {
|
for (int i = 0; i < pPool->max; ++i) {
|
||||||
SWorker *pWorker = pPool->worker + i;
|
SWorker *pWorker = pPool->worker + i;
|
||||||
if (pWorker->thread != 0) {
|
if(taosCheckPthreadValid(pWorker->thread)) {
|
||||||
taosQsetThreadResume(pPool->qset);
|
taosQsetThreadResume(pPool->qset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < pPool->max; ++i) {
|
for (int i = 0; i < pPool->max; ++i) {
|
||||||
SWorker *pWorker = pPool->worker + i;
|
SWorker *pWorker = pPool->worker + i;
|
||||||
if (pWorker->thread != 0) {
|
if (taosCheckPthreadValid(pWorker->thread)) {
|
||||||
pthread_join(pWorker->thread, NULL);
|
pthread_join(pWorker->thread, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue