brlapi_sync(3)

brlapi_sync3

Miscellaneous functions

Part of brlapi_misc(3).

Usage

Functions

int BRLAPI_STDCALL brlapi_pause (int timeout_ms)

int BRLAPI_STDCALL brlapi__pause (brlapi_handle_t *handle, int timeout_ms)

int BRLAPI_STDCALL brlapi_sync (void)

int BRLAPI_STDCALL brlapi__sync (brlapi_handle_t *handle)

Detailed Description

Function Documentation

int BRLAPI_STDCALL brlapi__pause (brlapi_handle_t * handle, int timeout_ms)

int BRLAPI_STDCALL brlapi__sync (brlapi_handle_t * handle)

int BRLAPI_STDCALL brlapi_pause (int timeout_ms)

Waits until an event is received from the BrlAPI server

Parameters

timeout_ms specifies an optional timeout which can be zero for polling, or -1 for infinite wait

Returns

0 on timeout, -1 on error, or on interruption by a signal or a parameter change notification, in which case brlapi_errno will be BRLAPI_ERROR_LIBCERR and errno will be EINTR.

int BRLAPI_STDCALL brlapi_sync (void)

Synchronize against any pending exception, and returns it. This allows to synchronously catch exception raised by brlapi_write calls. This works by temporarily replacing the current exception handler by its own handler.

Returns

0 if no exception was pending, -1 if an exception was caught.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Generated automatically by Doxygen for BrlAPI from the source code.

From libbrlapi-dev 6.7-3.1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.