chenBright commented on PR #2819: URL: https://github.com/apache/brpc/pull/2819#issuecomment-2489938094
> 能否在bthread这个层面上,创建协程的时候设置一个属性,使它具有更高的优先级呢?现在这里专门设置了epoll_XXX,感觉有点特化。 +1。 进一步抽象出一个高优先级队列,使用WorkStealingQueue来实现: 1. 简化实现逻辑。 2. 后续还有高优先级的bthread,只需要设置对应的bthread_attrflags_t即可。 这样是不是更好呢? -- 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