| 142 | SKR_TASK_API void reset(); |
| 143 | size_t hash() const { return (size_t)state.get(); } |
| 144 | bool done() const |
| 145 | { |
| 146 | if(!state) |
| 147 | return true; |
| 148 | SMutexLock guard(state->mutex); |
| 149 | return state->signalled; |
| 150 | } |
| 151 | explicit operator bool() const { return (bool)state; } |
| 152 | bool operator==(const event_t& other) const { return state == other.state; } |
| 153 |
no outgoing calls