Change-Id: I325703541385d064f9f3ba36fc9aeebb1e0e7bde
- * @return #YACA_ERROR_NONE on success
- * @retval #YACA_ERROR_NONE Successful
- *
* @see yaca_initialize()
*/
* @see yaca_initialize()
*/
+void yaca_cleanup(void);
/**
* @brief Allocates the memory.
/**
* @brief Allocates the memory.
-API int yaca_cleanup(void)
+API void yaca_cleanup(void)
{
/* calling cleanup twice on the same thread is a NOP */
if (!current_thread_initialized)
{
/* calling cleanup twice on the same thread is a NOP */
if (!current_thread_initialized)
- return YACA_ERROR_NONE;
/* per thread cleanup */
ERR_remove_thread_state(NULL);
/* per thread cleanup */
ERR_remove_thread_state(NULL);
current_thread_initialized = false;
}
pthread_mutex_unlock(&init_mutex);
current_thread_initialized = false;
}
pthread_mutex_unlock(&init_mutex);
-
- return YACA_ERROR_NONE;
}
API int yaca_malloc(size_t size, void **memory)
}
API int yaca_malloc(size_t size, void **memory)