Skip to content

Init and Finalize

Travis Koehring edited this page Aug 12, 2021 · 5 revisions

Overview

The Yaksa library is thread safe. Thus, in a multi-threaded program threads can call Yaksa routines (e.g. yaksa_type_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(yaksa_info_t info)
  • Parameters
    • [in] info: Info hint to apply
  • 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.