screen_wait_vsync()

Block the calling thread until the next vsync happens on the specified display

Function type:

Immediate execution

Synopsis:

#include <screen/screen.h>

int screen_wait_vsync( screen_display_t display );

Arguments:

disp
An instance of the display on which to perform the vsynch operation.

Library

screen

Description

The function will return when the next vsync operation occurs on the given display.

Returns

0
The function succeeded and returned (a vsync operation occurred).
-1
An error occurred (errno is set).

Classification

Windowing API

Safety  Value  
Interrupt handler No
Signal handler No
Thread Yes