MOD aaa-12 解决死锁问题,并将客户端线程调整为1个
SOL 解决死锁问题,并将客户端线程调整为1个 修改人:zhangliang 检视人:zhangliang
This commit is contained in:
parent
dac076b9d1
commit
11a44646c0
|
@ -331,10 +331,10 @@ static void* thread_client_handler(void* data) {
|
||||||
|
|
||||||
//pthread_mutex_t mutex = th->client->mutex;
|
//pthread_mutex_t mutex = th->client->mutex;
|
||||||
|
|
||||||
pthread_mutex_lock(&(th->client->mutex);
|
pthread_mutex_lock(&(th->client->mutex));
|
||||||
th->client->init_count++;
|
th->client->init_count++;
|
||||||
pthread_cond_signal(&(th->client->cond));
|
pthread_cond_signal(&(th->client->cond));
|
||||||
pthread_mutex_unlock(&(th->client->mutex);
|
pthread_mutex_unlock(&(th->client->mutex));
|
||||||
th->thread_receive_id = pthread_self();
|
th->thread_receive_id = pthread_self();
|
||||||
ev_run(th->loop, 0);
|
ev_run(th->loop, 0);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue