yanglimingcn opened a new issue, #1749: URL: https://github.com/apache/incubator-brpc/issues/1749
有些场景,在butex_wake*的时候不希望被唤醒的bthread马上和现在的bthread交换投入执行,比如,execution_queue是一个多生产者单消费者的队列,多生产者生成任务然后等待消费者将任务处理完成(比如:调用CountdownEvent::wait),消费者处理完任务唤醒生产者(比如:调用CountdownEvent::wait),在此过程中会频繁的触发协程的exchange。 需求:因为消费者是单线程,往往是性能的瓶颈点,需要最快的完成任务,如果消费者在处理完每个任务,只将消费者投入运行队列,并且能批量执行signal,这样性能应该会好很多。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
