libco icon indicating copy to clipboard operation
libco copied to clipboard

请教用cpprestsdk与协程配合堵塞的问题

Open yangqun opened this issue 2 years ago • 5 comments

while(1){ websocket_incoming_message msg = env->client->receive().get(); .... co_cond_signal(env->cond); poll(NULL, 0, 0); } 请教下大神,这个阻塞导致程序一直在这里收数据,无法跳到另外的消费者协程那里去,应该怎么办呢?

yangqun avatar Dec 28 '21 01:12 yangqun