Screen acquire buffer flags

Updated: May 27, 2022

Options for the flags parameter when you try to acquire a buffer from a producer

Synopsis:

#include <screen/screen.h>
enum {
    SCREEN_ACQUIRE_AND_RELEASE_OTHERS = (1 << 0),
    SCREEN_ACQUIRE_DONT_BLOCK = (1 << 5)
};

Data:

SCREEN_ACQUIRE_AND_RELEASE_OTHERS
Atomically release all other buffers when a new one is acquired.

This flag is associated with the preprocessor definition SCREEN_ACQUIRE_AND_RELEASE_OTHERS. When you use this flag, you must also specify SCREEN_ACQUIRE_DONT_BLOCK.

SCREEN_ACQUIRE_DONT_BLOCK
Return immediately if no buffer is available.

This flag is associated with the preprocessor definition SCREEN_ACQUIRE_DONT_BLOCK.

Library:

libscreen

Description:

These options are valid only for the screen_acquire_buffer() function. Use Screen flushing types for other Screen API functions that accept a flags parameter.