Class VFakeBinarySemaphore

java.lang.Object
com.io7m.jcoronado.fake.VFakeBinarySemaphore
All Implemented Interfaces:
VulkanHandleNonDispatchableType, VulkanHandleType, VulkanSemaphoreBinaryType, VulkanSemaphoreType, com.io7m.jmulticlose.core.CloseableType, AutoCloseable

public final class VFakeBinarySemaphore extends Object implements VulkanSemaphoreBinaryType
A fake binary semaphore. Binary semaphores are always created in the unsignalled state.
  • Constructor Details

    • VFakeBinarySemaphore

      public VFakeBinarySemaphore(VulkanSemaphoreBinaryCreateInfo inCreateInfo)
      A fake binary semaphore.
      Parameters:
      inCreateInfo - The creation info
  • Method Details

    • createInfo

      public VulkanSemaphoreBinaryCreateInfo 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:
      true if the semaphore is signalled
    • close

      public void close()
      Description copied from interface: VulkanHandleType
      Destroy the object.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface VulkanHandleType
      Specified by:
      close in interface VulkanSemaphoreType
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface com.io7m.jmulticlose.core.CloseableType