#include <thread.h>
Reference to a thread that returns more than void/Result<void>.
公共成员函数 |
|
ThreadResultRef (const ThreadRef & src ) | |
ThreadResultRef ( ThreadRef && src ) | |
Result < RESULTVALUETYPE > | GetResult ( TimeValue timeout= TIMEVALUE_INFINITE , WAITMODE mode= WAITMODE::DEFAULT ) const |
|
explicit |
|
explicit |
Result <RESULTVALUETYPE> GetResult | ( | TimeValue |
timeout
=
TIMEVALUE_INFINITE
,
|
WAITMODE |
mode
=
WAITMODE::DEFAULT
|
||
) | const |
Waits until this thread has been executed and returns the result. THREADSAFE.
[in] | timeout | Maximum wait interval (or TIMEVALUE_INFINITE for no time-out). |
[in] | mode | WAITMODE::DEFAULT by default. WAITMODE::RETURN_ON_CANCEL means that Wait() will return if the caller has been cancelled even if the condition has not been set yet. |