简体   繁体   中英

gRPC C++ Async Client: Understanding threading

由于我找不到任何答案,我发布了它,在 gRPC 异步客户端中,是否会在生成请求时自动生成线程,或者必须为每个请求手动创建线程?

Please take a look at an example .

In the Async completion queue based model, the application is responsible for creating and managing the threads on their own, and the application then provides these threads to gRPC through the completion queue's Next() method to drive the internal polling engine so that work can be done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM