openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_ThreadRunOnce()

int32_t BSL_SAL_ThreadRunOnce ( uint32_t *  onceControl,
BSL_SAL_ThreadInitRoutine  initFunc 
)

Execute only once.

Run the init Func command only once.

Attention
The current version does not support registration.
Parameters
onceControl[IN] Record the execution status.
initFunc[IN] Initialization function.
Return values
BSL_SUCCESS,succeeded.
BSL_SAL_ERR_BAD_PARAM,inputparameter is abnormal.
BSL_SAL_ERR_UNKNOWN,thedefault run once failed.