Skip to content

Commit d0c9e38

Browse files
author
devsh
committed
add a conversion op to ISemaphore::future_base_t
1 parent 6bbdc2d commit d0c9e38

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples_tests

include/nbl/video/ISemaphore.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class ISemaphore : public IBackendObject
6060
return true;
6161
}
6262

63+
inline operator SWaitInfo() const {return {m_semaphore.get(),m_waitValue};}
64+
6365
NBL_API2 WAIT_RESULT wait() const;
6466

6567
protected:

0 commit comments

Comments
 (0)