Add Future::TryGet() method
This takes a mutex (that should be held at call time). It returns the future's value if it's available and otherwise unlocks the mutex, tries to do some work, and then returns with the mutex re-locked. This allows mutex-protected future harvesting to work without deadlock...
Showing
想要评论请 注册 或 登录