Class VFakeTimelineSemaphore
java.lang.Object
com.io7m.jcoronado.fake.VFakeTimelineSemaphore
- All Implemented Interfaces:
VulkanHandleNonDispatchableType, VulkanHandleType, VulkanSemaphoreTimelineType, VulkanSemaphoreType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable
A fake timeline semaphore.
-
Constructor Summary
ConstructorsConstructorDescriptionVFakeTimelineSemaphore(VulkanSemaphoreTimelineCreateInfo inCreateInfo) A fake timeline semaphore. -
Method Summary
-
Constructor Details
-
VFakeTimelineSemaphore
A fake timeline semaphore.- Parameters:
inCreateInfo- The creation info
-
-
Method Details
-
createInfo
- Returns:
- The creation info
-
counterValue
public long counterValue()- Returns:
- The current timeline value
-
signal
public void signal(long inValue) Signal the semaphore at the given value.- Parameters:
inValue- The value
-
await
public void await(long inValue, long inTimeout, TimeUnit inUnit) throws InterruptedException, TimeoutException Wait for the semaphore to reach the given value.- Parameters:
inValue- The value to wait forinTimeout- The timeoutinUnit- The timeout unit- Throws:
InterruptedException- If interruptedTimeoutException- If the timeout expires
-
close
public void close()Description copied from interface:VulkanHandleTypeDestroy the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVulkanHandleType- Specified by:
closein interfaceVulkanSemaphoreType
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfacecom.io7m.jmulticlose.core.CloseableType
-