20#include "hitls_build.h"
100} BSL_SAL_ThreadCallback;
102int32_t SAL_ThreadCallBack_Ctrl(BSL_SAL_CB_FUNC_TYPE type,
void *funcCb);
124} BSL_SAL_PidCallback;
126#ifdef HITLS_BSL_SAL_PID
127int32_t SAL_PidCallBack_Ctrl(BSL_SAL_CB_FUNC_TYPE type,
void *funcCb);
130#if defined(HITLS_BSL_SAL_LINUX) || defined(HITLS_BSL_SAL_DARWIN)
131#ifdef HITLS_BSL_SAL_LOCK
143#ifdef HITLS_BSL_SAL_PID
144int32_t SAL_GetPid(
void);
147#ifdef HITLS_BSL_SAL_THREAD
148uint64_t SAL_GetThreadId(
void);
150int32_t SAL_ThreadCreate(
BSL_SAL_ThreadId *thread,
void *(*startFunc)(
void *),
void *arg);
int32_t(* pfThreadWriteLock)(BSL_SAL_ThreadLockHandle lock)
Lock the write operation.
定义 sal_lockimpl.h:76
int32_t(* BslCondTimedwaitMs)(BSL_SAL_Mutex condMutex, BSL_SAL_CondVar condVar, int32_t timeout)
The waiting time ends or the signal is obtained.
定义 bsl_sal.h:187
void * BSL_SAL_CondVar
定义 bsl_sal.h:84
int32_t(* BslCreateCondVar)(BSL_SAL_CondVar *condVar)
Create a condition variable.
定义 bsl_sal.h:158
int32_t(* pfThreadLockNew)(BSL_SAL_ThreadLockHandle *lock)
Create a thread lock.
定义 sal_lockimpl.h:40
int32_t(* pfThreadUnlock)(BSL_SAL_ThreadLockHandle lock)
Unlock
定义 sal_lockimpl.h:89
int32_t(* BslThreadRunOnce)(BSL_SAL_OnceControl *onceControl, BSL_SAL_ThreadInitRoutine initFunc)
Run the init Func command only once.
定义 bsl_sal.h:116
void(* pfThreadLockFree)(BSL_SAL_ThreadLockHandle lock)
Release the thread lock.
定义 sal_lockimpl.h:50
int32_t(* pfThreadReadLock)(BSL_SAL_ThreadLockHandle lock)
Lock the read operation.
定义 sal_lockimpl.h:63
int32_t(* pfGetId)(void)
Obtain the process ID.
定义 sal_lockimpl.h:123
void(* BslThreadClose)(BSL_SAL_ThreadId thread)
Close the thread.
定义 bsl_sal.h:144
int32_t(* BslThreadCreate)(BSL_SAL_ThreadId *thread, void *(*startFunc)(void *), void *arg)
Create a thread.
定义 bsl_sal.h:132
void(* BSL_SAL_ThreadInitRoutine)(void)
The user registers the function structure for thread-related operations.
定义 bsl_sal.h:101
void * BSL_SAL_ThreadLockHandle
定义 bsl_sal.h:63
void * BSL_SAL_Mutex
定义 bsl_sal.h:77
int32_t(* BslCondSignal)(BSL_SAL_CondVar condVar)
The waiting time ends or the signal is obtained.
定义 bsl_sal.h:172
uint64_t(* pfThreadGetId)(void)
Obtain the thread ID.
定义 sal_lockimpl.h:99
int32_t(* BslDeleteCondVar)(BSL_SAL_CondVar condVar)
Delete a condition variable.
定义 bsl_sal.h:201
void * BSL_SAL_ThreadId
定义 bsl_sal.h:70
Thread run-once control type
定义 bsl_sal.h:47