throw_future_error exception.
Hi,
I am facing std::__throw_future_error(int) () exception if i try to do std::future<bool>::get() () Note: this exception is thrown sometimes (2 out of 10 times) here is my code snippet. Code:
Note : i set the notification (SetNotification) from my other module of program. My thread function (thread_Fun) will be waiting for notification from GetFutureNotification, when once the promise value is set the thread gets unblocked and proceed with its execution. I appreciate your support in this regard. |
Be sure that you don't have any sort of "race" between the code that sets the future and any other code that expects to assert it.
|
All times are GMT -5. The time now is 02:27 PM. |