screen_wait_vsync()
Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities
Block the calling thread until the next vsync happens on the specified display
Synopsis:
#include <screen/screen.h>
int screen_wait_vsync(screen_display_t display)
Arguments:
- display
- An instance of the display on which to perform the vsync operation.
Library:
libscreenDescription:
Function Type: Immediate Execution
This function blocks the calling thread and returns when the next vsync operation occurs on the specified display.
Returns:
0
if successful, or -1
if an error occurred (errno
is set; refer to errno.h
for more details).
Page updated: