Class VFakeBinarySemaphore
java.lang.Object
com.io7m.jcoronado.fake.VFakeBinarySemaphore
- All Implemented Interfaces:
VulkanHandleNonDispatchableType, VulkanHandleType, VulkanSemaphoreBinaryType, VulkanSemaphoreType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable
A fake binary semaphore. Binary semaphores are always created in the
unsignalled state.
-
Constructor Summary
ConstructorsConstructorDescriptionVFakeBinarySemaphore(VulkanSemaphoreBinaryCreateInfo inCreateInfo) A fake binary semaphore. -
Method Summary
-
Constructor Details
-
VFakeBinarySemaphore
A fake binary semaphore.- Parameters:
inCreateInfo- The creation info
-
-
Method Details
-
createInfo
- Returns:
- The creation info
-
signal
public void signal()Signal the semaphore. -
reset
public void reset()Reset the semaphore to the unsignalled state. -
isSignalled
public boolean isSignalled()- Returns:
trueif the semaphore is signalled
-
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
-