chenBright commented on PR #2492: URL: https://github.com/apache/brpc/pull/2492#issuecomment-2296127224
用户自己实现更灵活。 mpsc提供同步机制应该也不复杂,抽象一个同步基类作为mpsc模板参数,让用户传决定实现wait和wakeup(一般就是pthread实现和bthread实现,这两个可以由框架提供实现)。入队之后是队头且有waiter,就唤醒waiter。出队时没有数据就wait。 -- 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: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org