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.

注意
The current version does not support registration.
参数
onceControl[IN] Record the execution status.
initFunc[IN] Initialization function.
返回值
BSL_SUCCESS,succeeded.
BSL_SAL_ERR_BAD_PARAM,inputparameter is abnormal.
BSL_SAL_ERR_UNKNOWN,thedefault run once failed.