c/client: Clarify that wait_image timeout is nanoseconds

This commit is contained in:
Ryan Pavlik 2022-05-17 13:16:15 -05:00 committed by Jakob Bornecrantz
parent 753f37c41f
commit 1cd435f321
2 changed files with 4 additions and 4 deletions

View file

@ -142,12 +142,12 @@ client_gl_swapchain_acquire_image(struct xrt_swapchain *xsc, uint32_t *out_index
}
static xrt_result_t
client_gl_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index)
client_gl_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout_ns, uint32_t index)
{
struct client_gl_swapchain *sc = client_gl_swapchain(xsc);
// Pipe down call into native swapchain.
return xrt_swapchain_wait_image(&sc->xscn->base, timeout, index);
return xrt_swapchain_wait_image(&sc->xscn->base, timeout_ns, index);
}
static xrt_result_t

View file

@ -285,14 +285,14 @@ client_vk_swapchain_acquire_image(struct xrt_swapchain *xsc, uint32_t *out_index
}
static xrt_result_t
client_vk_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout, uint32_t index)
client_vk_swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout_ns, uint32_t index)
{
COMP_TRACE_MARKER();
struct client_vk_swapchain *sc = client_vk_swapchain(xsc);
// Pipe down call into native swapchain.
return xrt_swapchain_wait_image(&sc->xscn->base, timeout, index);
return xrt_swapchain_wait_image(&sc->xscn->base, timeout_ns, index);
}
static xrt_result_t