How to check if a std::async task is finished?

前端 未结 2 879
生来不讨喜
生来不讨喜 2021-02-07 00:43

In my graphics application I want to generate a batch meshes in another thread. Therefore I asynchrony call the member function using std::async.

ta         


        
2条回答
  •  無奈伤痛
    2021-02-07 01:17

    There's an is_ready member function in the works for std::future. In the meantime, the VC implementation has an _Is_ready() member.

提交回复
热议问题