Skip to content

Init and Finalize

Giuseppe Congiu edited this page Apr 13, 2020 · 5 revisions

Overview

The Yaksa library is thread safe. Thus, in a multi-threaded program, threads can call Yaksa routines (e.g. yaksa_create_vector or yaksa_ipack/iunpack) concurrently. The only exceptions are yaksa_init and yaksa_finalize that have to be called only by one thread. This document describes these routines.

API

yaksa_init()

int yaksa_init(void)
  • Returned value
    • On success, YAKSA_SUCCESS is returned.
    • On error, a non-zero error code is returned.

yaksa_finalize()

int yaksa_finalize(void)
  • Returned value
    • On success, YAKSA_SUCCESS is returned.
    • On error, a non-zero error code is returned.