use negative timeout to specify no timeout at all
The image format of this swapchain
Get the list of images owned by this swapchain. The index of each image is meaningful and is often used to reference the image (such as the index returned by acquireNextImage)
Atomically load the number of active references.
Atomically increment the reference count.
Atomically decrement the reference count and dispose if it reaches zero. The object is locked using its own mutex when dispose is called.
Get a copy of this RefCounted instance if the refCount >= 1. This increases the refCount by 1. This should only be used to keep weak reference and ensures that the resource is not disposed. The operation is atomic.