You can read the details about the promise and the future here. For the sake of simplicity, I will, in the rest of the posts, only speak about a waiting thread, although the future is indeed waiting. All promises and futures will be executed in different threads. Each future has a different waiting strategy. That's possible because I used std::shared_future. The key idea of the program is that the promise provides its result for four shared futures. Various waiting strategiesįirst, I want to describe the various waiting strategies. ![]() " Design Patterns and Architectural Patterns with C++" (open)ĭo you want to stay informed about my mentoring programs: Subscribe via E-Mail. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |