openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_RegThreadCallback()

int32_t BSL_SAL_RegThreadCallback ( BSL_SAL_ThreadCallback cb)

Interface for registering thread-related callback functions.

Register the functions related to thread lock creation, release, lock, unlock, and thread ID obtaining. Can't be called in single thread scenario. Must be called in multiple threads scenario.

注意
None
参数
cb[IN] Thread related callback function pointer
返回值
BSL_SUCCESS,Thefunctions related to the thread are successfully registered.
BSL_SAL_ERR_BAD_PARAM0x02010003. If the cb is null or the cb members have null, fill in the cb pointer with caution.