Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_audio_client.c File Reference

Data Structures

struct  _ClientThreadData_t
 

Macros

#define LOCK_INIT   le_mutex_Lock(le_ifgen_InitMutexRef);
 Locks the mutex. More...
 
#define UNLOCK_INIT   le_mutex_Unlock(le_ifgen_InitMutexRef);
 Unlocks the mutex. More...
 

Functions

 LE_MEM_DEFINE_STATIC_POOL (taf_audio_ClientThreadData, LE_CDATA_COMPONENT_COUNT, sizeof(_ClientThreadData_t))
 
static le_result_t InitClientForThread (bool isBlocking)
 
static _ClientThreadData_tGetClientThreadDataPtr (void)
 
 __attribute__ ((unused))
 
static void ClientThreadDestructor (void *objPtr)
 
static void InitCommonData (void)
 
static le_result_t DoConnectService (bool isBlocking)
 
void taf_audio_ConnectService (void)
 
le_result_t taf_audio_TryConnectService (void)
 
static void SessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr)
 
void taf_audio_SetServerDisconnectHandler (taf_audio_DisconnectHandler_t disconnectHandler, void *contextPtr)
 
static void NonExitSessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr)
 
void taf_audio_SetNonExitServerDisconnectHandler (taf_audio_DisconnectHandler_t disconnectHandler, void *contextPtr)
 
void taf_audio_DisconnectService (void)
 
void taf_audio_Close (taf_audio_StreamRef_t sRef)
 
taf_audio_ConnectorRef_t taf_audio_CreateConnector (void)
 
void taf_audio_DeleteConnector (taf_audio_ConnectorRef_t connRef)
 
le_result_t taf_audio_Connect (taf_audio_ConnectorRef_t connRef, taf_audio_StreamRef_t sRef)
 
void taf_audio_Disconnect (taf_audio_ConnectorRef_t connRef, taf_audio_StreamRef_t sRef)
 
taf_audio_StreamRef_t taf_audio_OpenSpeaker (void)
 
taf_audio_StreamRef_t taf_audio_OpenMic (void)
 
taf_audio_StreamRef_t taf_audio_OpenModemVoiceRx (uint32_t slotId)
 
taf_audio_StreamRef_t taf_audio_OpenModemVoiceTx (uint32_t slotId)
 
le_result_t taf_audio_PlayDtmf (taf_audio_StreamRef_t streamRef, const char *LE_NONNULL dtmf, uint32_t duration, uint32_t pause)
 
le_result_t taf_audio_Mute (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_Unmute (taf_audio_StreamRef_t streamRef)
 
taf_audio_StreamRef_t taf_audio_OpenPlayer (void)
 
le_result_t taf_audio_PlayFile (taf_audio_StreamRef_t streamRef, int fd)
 
taf_audio_StreamRef_t taf_audio_OpenRecorder (void)
 
le_result_t taf_audio_RecordFile (taf_audio_StreamRef_t streamRef, int fd)
 
taf_audio_MediaHandlerRef_t taf_audio_AddMediaHandler (taf_audio_StreamRef_t streamRef, taf_audio_MediaHandlerFunc_t handlerPtr, void *contextPtr)
 
void taf_audio_RemoveMediaHandler (taf_audio_MediaHandlerRef_t handlerRef)
 
taf_audio_DtmfDetectorHandlerRef_t taf_audio_AddDtmfDetectorHandler (taf_audio_StreamRef_t streamRef, taf_audio_DtmfDetectorHandlerFunc_t handlerPtr, void *contextPtr)
 
void taf_audio_RemoveDtmfDetectorHandler (taf_audio_DtmfDetectorHandlerRef_t handlerRef)
 
le_result_t taf_audio_Stop (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_SetGain (taf_audio_StreamRef_t streamRef, int32_t gain)
 
le_result_t taf_audio_GetGain (taf_audio_StreamRef_t streamRef, int32_t *gainPtr)
 
le_result_t taf_audio_EnableNoiseSuppressor (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_EnableEchoCanceller (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_DisableNoiseSuppressor (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_DisableEchoCanceller (taf_audio_StreamRef_t streamRef)
 
le_result_t taf_audio_IsEchoCancellerEnabled (taf_audio_StreamRef_t streamRef, bool *statusPtr)
 
le_result_t taf_audio_IsNoiseSuppressorEnabled (taf_audio_StreamRef_t streamRef, bool *statusPtr)
 
taf_audio_StreamRef_t taf_audio_OpenI2sRx (taf_audio_I2SChannel_t mode)
 
taf_audio_StreamRef_t taf_audio_OpenI2sTx (taf_audio_I2SChannel_t mode)
 
taf_audio_StreamRef_t taf_audio_OpenPcmRx (uint32_t timeslot)
 
taf_audio_StreamRef_t taf_audio_OpenPcmTx (uint32_t timeslot)
 
le_result_t taf_audio_SetSamplePcmSamplingRate (taf_audio_StreamRef_t streamRef, uint32_t rate)
 
le_result_t taf_audio_GetSamplePcmSamplingRate (taf_audio_StreamRef_t streamRef, uint32_t *ratePtr)
 
le_result_t taf_audio_SetSamplePcmChannelNumber (taf_audio_StreamRef_t streamRef, uint32_t nbChannel)
 
le_result_t taf_audio_GetSamplePcmChannelNumber (taf_audio_StreamRef_t streamRef, uint32_t *nbChannelPtr)
 
le_result_t taf_audio_SetEncodingFormat (taf_audio_StreamRef_t streamRef, taf_audio_Format_t format)
 
le_result_t taf_audio_GetEncodingFormat (taf_audio_StreamRef_t streamRef, taf_audio_Format_t *formatPtr)
 

Variables

static le_mem_PoolRef_t _ClientThreadDataPool
 
static pthread_key_t _ThreadDataKey
 
static bool CommonDataInitialized = false
 
le_mutex_Ref_t le_ifgen_InitMutexRef
 

Macro Definition Documentation

◆ LOCK_INIT

#define LOCK_INIT   le_mutex_Lock(le_ifgen_InitMutexRef);

Locks the mutex.

◆ UNLOCK_INIT

#define UNLOCK_INIT   le_mutex_Unlock(le_ifgen_InitMutexRef);

Unlocks the mutex.

Function Documentation

◆ LE_MEM_DEFINE_STATIC_POOL()

LE_MEM_DEFINE_STATIC_POOL ( taf_audio_ClientThreadData  ,
LE_CDATA_COMPONENT_COUNT  ,
sizeof(_ClientThreadData_t  
)

Static pool for client threads.

◆ InitClientForThread()

static le_result_t InitClientForThread ( bool  isBlocking)
static

Initialize thread specific data, and connect to the service for the current thread.

Returns
  • LE_OK if the client connected successfully to the service.
  • LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.
  • LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
  • LE_COMM_ERROR if the Service Directory cannot be reached.

◆ GetClientThreadDataPtr()

static _ClientThreadData_t* GetClientThreadDataPtr ( void  )
static

Get a pointer to the client thread data for the current thread.

If the current thread does not have client data, then NULL is returned

◆ __attribute__()

__attribute__ ( (unused)  )

Return the sessionRef for the current thread.

If the current thread does not have a session ref, then this is a fatal error.

◆ ClientThreadDestructor()

static void ClientThreadDestructor ( void *  objPtr)
static

Destructor function for client thread objects.

◆ InitCommonData()

static void InitCommonData ( void  )
static

Init data that is common across all threads.

◆ DoConnectService()

static le_result_t DoConnectService ( bool  isBlocking)
static

Connect to the service, using either blocking or non-blocking calls.

This function implements the details of the public ConnectService functions.

Returns
  • LE_OK if the client connected successfully to the service.
  • LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.
  • LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
  • LE_COMM_ERROR if the Service Directory cannot be reached.

◆ taf_audio_ConnectService()

void taf_audio_ConnectService ( void  )

Connect the current client thread to the service providing this API. Block until the service is available.

For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.

This function is created automatically.

◆ taf_audio_TryConnectService()

le_result_t taf_audio_TryConnectService ( void  )

Try to connect the current client thread to the service providing this API. Return with an error if the service is not available.

For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.

This function is created automatically.

Returns
  • LE_OK if the client connected successfully to the service.
  • LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.
  • LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
  • LE_COMM_ERROR if the Service Directory cannot be reached.

◆ SessionCloseHandler()

static void SessionCloseHandler ( le_msg_SessionRef_t  sessionRef,
void *  contextPtr 
)
static

◆ taf_audio_SetServerDisconnectHandler()

void taf_audio_SetServerDisconnectHandler ( taf_audio_DisconnectHandler_t  disconnectHandler,
void *  contextPtr 
)

Set handler called when server disconnection is detected.

When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants to continue without exiting, it should call longjmp() from inside the handler.

◆ NonExitSessionCloseHandler()

static void NonExitSessionCloseHandler ( le_msg_SessionRef_t  sessionRef,
void *  contextPtr 
)
static

◆ taf_audio_SetNonExitServerDisconnectHandler()

void taf_audio_SetNonExitServerDisconnectHandler ( taf_audio_DisconnectHandler_t  disconnectHandler,
void *  contextPtr 
)

Set handler called when server disconnection is detected without exiting.

When a server connection is lost, call this handler without exit.

Warning
When using the API, it needs the application developer to handle some cases like re-connecting and recycling the resources. For most of cases, it is safe to use SetServerDisconnectHandler.

◆ taf_audio_DisconnectService()

void taf_audio_DisconnectService ( void  )

Disconnect the current client thread from the service providing this API.

Normally, this function doesn't need to be called. After this function is called, there's no longer a connection to the service, and the functions in this API can't be used. For details, see apiFilesC_client.

This function is created automatically.

◆ taf_audio_Close()

void taf_audio_Close ( taf_audio_StreamRef_t  sRef)

Closes the stream reference.

Parameters
[in]sRefAudio stream reference.

◆ taf_audio_CreateConnector()

taf_audio_ConnectorRef_t taf_audio_CreateConnector ( void  )

Creates a new connector.

Returns
Reference to the audio stream, NULL on error.

◆ taf_audio_DeleteConnector()

void taf_audio_DeleteConnector ( taf_audio_ConnectorRef_t  connRef)

Deletes a connected connector.

Note
This function will not return if passed a bad reference.
Parameters
[in]connRefConnector reference.

◆ taf_audio_Connect()

le_result_t taf_audio_Connect ( taf_audio_ConnectorRef_t  connRef,
taf_audio_StreamRef_t  sRef 
)

Connects a connector for an audio stream reference.

Returns
  • LE_OK Success.
  • LE_FAULT Failure.
Note
This function will not return if passed a bad reference.
Parameters
[in]connRefConnector reference.
[in]sRefAudio stream reference.

◆ taf_audio_Disconnect()

void taf_audio_Disconnect ( taf_audio_ConnectorRef_t  connRef,
taf_audio_StreamRef_t  sRef 
)

Disconnects a connector for an audio stream reference.

Note
This function will not return if passed a bad reference.
Parameters
[in]connRefConnector reference.
[in]sRefAudio stream reference.

◆ taf_audio_OpenSpeaker()

taf_audio_StreamRef_t taf_audio_OpenSpeaker ( void  )

Opens an audio stream reference for speaker use.

Returns
Reference to the audio stream, NULL on error.

◆ taf_audio_OpenMic()

taf_audio_StreamRef_t taf_audio_OpenMic ( void  )

Opens an audio stream reference for microphone use.

Returns
Reference to an audio stream, NULL on error.

◆ taf_audio_OpenModemVoiceRx()

taf_audio_StreamRef_t taf_audio_OpenModemVoiceRx ( uint32_t  slotId)

Opens an audio stream reference for voice Rx.

Returns
Reference to an audio stream, NULL on error.
Parameters
[in]slotIdSlot value

◆ taf_audio_OpenModemVoiceTx()

taf_audio_StreamRef_t taf_audio_OpenModemVoiceTx ( uint32_t  slotId)

Opens an audio stream reference for voice Tx.

Returns
Reference to an audio stream, NULL on error.
Parameters
[in]slotIdSlot value.

◆ taf_audio_PlayDtmf()

le_result_t taf_audio_PlayDtmf ( taf_audio_StreamRef_t  streamRef,
const char *LE_NONNULL  dtmf,
uint32_t  duration,
uint32_t  pause 
)

DTMF playback for inband.

Note
Applicable only for voice streams.
Parameters
[in]streamRefAudio stream reference.
[in]dtmfDTMF data.
[in]durationDuration to play.
[in]pausePause between tones.

◆ taf_audio_Mute()

le_result_t taf_audio_Mute ( taf_audio_StreamRef_t  streamRef)

Mutes an audio stream.

Returns
  • LE_OK Success.
  • LE_FAULT Failure.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_Unmute()

le_result_t taf_audio_Unmute ( taf_audio_StreamRef_t  streamRef)

Unmutes an audio stream.

Returns
  • LE_OK Success.
  • LE_FAULT Failure.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_OpenPlayer()

taf_audio_StreamRef_t taf_audio_OpenPlayer ( void  )

Opens a stream for audio playback.

Returns
Reference to an audio stream, NULL on error.

◆ taf_audio_PlayFile()

le_result_t taf_audio_PlayFile ( taf_audio_StreamRef_t  streamRef,
int  fd 
)

Plays a file on a playback stream.

Returns
  • LE_FAULT Failure.
  • LE_BAD_PARAMETER Invalid stream reference.
  • LE_BUSY Already active.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[in]fdFile descriptor.

◆ taf_audio_OpenRecorder()

taf_audio_StreamRef_t taf_audio_OpenRecorder ( void  )

Opens the audio stream for recording.

Returns
Reference to an audio stream, NULL on error.

◆ taf_audio_RecordFile()

le_result_t taf_audio_RecordFile ( taf_audio_StreamRef_t  streamRef,
int  fd 
)

Records a file on the recorder stream.

Returns
  • LE_FAULT Failure.
  • LE_BAD_PARAMETER Invalid stream reference.
  • LE_BUSY Already active.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[in]fdFile descriptor.

◆ taf_audio_AddMediaHandler()

taf_audio_MediaHandlerRef_t taf_audio_AddMediaHandler ( taf_audio_StreamRef_t  streamRef,
taf_audio_MediaHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

Add handler function for EVENT 'taf_audio_Media'

This event provides information on player/recorder stream events.

Parameters
[in]streamRefAudio stream reference.
[in]handlerPtrMedia handler.
[in]contextPtr

◆ taf_audio_RemoveMediaHandler()

void taf_audio_RemoveMediaHandler ( taf_audio_MediaHandlerRef_t  handlerRef)

Remove handler function for EVENT 'taf_audio_Media'

Parameters
[in]handlerRef

◆ taf_audio_AddDtmfDetectorHandler()

taf_audio_DtmfDetectorHandlerRef_t taf_audio_AddDtmfDetectorHandler ( taf_audio_StreamRef_t  streamRef,
taf_audio_DtmfDetectorHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

Add handler function for EVENT 'taf_audio_DtmfDetector'

This event provides information on DTMF decoding for the specified streamRef.

Parameters
[in]streamRefAudio stream reference.
[in]handlerPtrDTMF Handler.
[in]contextPtr

◆ taf_audio_RemoveDtmfDetectorHandler()

void taf_audio_RemoveDtmfDetectorHandler ( taf_audio_DtmfDetectorHandlerRef_t  handlerRef)

Remove handler function for EVENT 'taf_audio_DtmfDetector'

Parameters
[in]handlerRef

◆ taf_audio_Stop()

le_result_t taf_audio_Stop ( taf_audio_StreamRef_t  streamRef)

Stops the file playback or recording.

Returns
  • LE_OK Success.
  • LE_FAULT Failure.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_SetGain()

le_result_t taf_audio_SetGain ( taf_audio_StreamRef_t  streamRef,
int32_t  gain 
)

Sets the volume.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[in]gainSet gain parameter.

◆ taf_audio_GetGain()

le_result_t taf_audio_GetGain ( taf_audio_StreamRef_t  streamRef,
int32_t *  gainPtr 
)

Gets the volume.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[out]gainPtrGain parameter.

◆ taf_audio_EnableNoiseSuppressor()

le_result_t taf_audio_EnableNoiseSuppressor ( taf_audio_StreamRef_t  streamRef)

Enables noise suppression.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_EnableEchoCanceller()

le_result_t taf_audio_EnableEchoCanceller ( taf_audio_StreamRef_t  streamRef)

Enables echo cancellation.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_DisableNoiseSuppressor()

le_result_t taf_audio_DisableNoiseSuppressor ( taf_audio_StreamRef_t  streamRef)

Disables noise suppression.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_DisableEchoCanceller()

le_result_t taf_audio_DisableEchoCanceller ( taf_audio_StreamRef_t  streamRef)

Sets the volume.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.

◆ taf_audio_IsEchoCancellerEnabled()

le_result_t taf_audio_IsEchoCancellerEnabled ( taf_audio_StreamRef_t  streamRef,
bool *  statusPtr 
)

Gets echo cancellation status.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[out]statusPtrCheck for EchoCanceller flag.

◆ taf_audio_IsNoiseSuppressorEnabled()

le_result_t taf_audio_IsNoiseSuppressorEnabled ( taf_audio_StreamRef_t  streamRef,
bool *  statusPtr 
)

Gets noise suppression status.

Returns
  • LE_FAULT Failure.
  • LE_OK Success.
Parameters
[in]streamRefAudio stream reference.
[out]statusPtrCheck for NoiseSuppressor flag.

◆ taf_audio_OpenI2sRx()

taf_audio_StreamRef_t taf_audio_OpenI2sRx ( taf_audio_I2SChannel_t  mode)

Opens an audio stream reference for I2S Rx interface use.

Note
Set the sampling rate using taf_audio_SetSamplePcmSamplingRate after creating the stream reference and before connecting, otherwise the defalut sampling rate will be 16000.
Returns
Reference to the audio stream, NULL on error.
Parameters
[in]modeThe channel mode.

◆ taf_audio_OpenI2sTx()

taf_audio_StreamRef_t taf_audio_OpenI2sTx ( taf_audio_I2SChannel_t  mode)

Opens an audio stream reference for I2S Tx interface use.

Note
Set the sampling rate using taf_audio_SetSamplePcmSamplingRate after creating the stream reference and before connecting, otherwise the defalut sampling rate will be 16000.
Returns
Reference to the audio stream, NULL on error.
Parameters
[in]modeThe channel mode.

◆ taf_audio_OpenPcmRx()

taf_audio_StreamRef_t taf_audio_OpenPcmRx ( uint32_t  timeslot)

Opens an audio stream reference for PCM Rx interface use.

Note
Set the sampling rate using taf_audio_SetSamplePcmSamplingRate after creating the stream reference and before connecting, otherwise the defalut sampling rate will be 16000.
Returns
Reference to the audio stream, NULL on error.
Parameters
[in]timeslotThe time slot number.

◆ taf_audio_OpenPcmTx()

taf_audio_StreamRef_t taf_audio_OpenPcmTx ( uint32_t  timeslot)

Opens an audio stream reference for PCM Tx interface use.

Note
Set the sampling rate using taf_audio_SetSamplePcmSamplingRate after creating the stream reference and before connecting, otherwise the defalut sampling rate will be 16000.
Returns
Reference to the audio stream, NULL on error.
Parameters
[in]timeslotThe time slot number.

◆ taf_audio_SetSamplePcmSamplingRate()

le_result_t taf_audio_SetSamplePcmSamplingRate ( taf_audio_StreamRef_t  streamRef,
uint32_t  rate 
)

Sets the sampling rate of a stream reference.

Returns
  • LE_OK Succeeded.
  • LE_FAULT Failed.
Parameters
[in]streamRefAudio stream reference.
[in]rateSampling rate.

◆ taf_audio_GetSamplePcmSamplingRate()

le_result_t taf_audio_GetSamplePcmSamplingRate ( taf_audio_StreamRef_t  streamRef,
uint32_t *  ratePtr 
)

Gets the sampling rate of the stream reference.

Returns
  • LE_FAULT Failed.
  • LE_OK Function succeeded.
Parameters
[in]streamRefAudio stream reference.
[out]ratePtrSampling rate.

◆ taf_audio_SetSamplePcmChannelNumber()

le_result_t taf_audio_SetSamplePcmChannelNumber ( taf_audio_StreamRef_t  streamRef,
uint32_t  nbChannel 
)

Sets the channel number for the stream reference.

Returns
  • LE_FAULT Failed.
  • LE_OK Succeeded.
Parameters
[in]streamRefAudio stream reference.
[in]nbChannelChannel number.

◆ taf_audio_GetSamplePcmChannelNumber()

le_result_t taf_audio_GetSamplePcmChannelNumber ( taf_audio_StreamRef_t  streamRef,
uint32_t *  nbChannelPtr 
)

Gets the channel number of the recorder stream reference.

Returns
  • LE_FAULT Failed.
  • LE_OK Succeeded.
Parameters
[in]streamRefAudio stream reference.
[out]nbChannelPtrChannel number.

◆ taf_audio_SetEncodingFormat()

le_result_t taf_audio_SetEncodingFormat ( taf_audio_StreamRef_t  streamRef,
taf_audio_Format_t  format 
)

Sets the encoding format of a recorder stream reference.

Returns
  • LE_FAULT Failed.
  • LE_OK Succeeded.
Parameters
[in]streamRefAudio stream reference.
[in]formatEncoding format.

◆ taf_audio_GetEncodingFormat()

le_result_t taf_audio_GetEncodingFormat ( taf_audio_StreamRef_t  streamRef,
taf_audio_Format_t formatPtr 
)

Gets the encoding format of a recorder stream reference.

Returns
  • LE_FAULT Failed.
  • LE_OK Succeeded.
Note
A client calling this function with either an invalid streamRef or null out pointer parameter will be killed and the function will not return.
Parameters
[in]streamRefAudio stream reference.
[out]formatPtrEncoding format.

Variable Documentation

◆ _ClientThreadDataPool

le_mem_PoolRef_t _ClientThreadDataPool
static

The memory pool for client thread objects

◆ _ThreadDataKey

pthread_key_t _ThreadDataKey
static

Key under which the pointer to the Thread Object (_ClientThreadData_t) will be kept in thread-local storage. This allows a thread to quickly get a pointer to its own Thread Object.

◆ CommonDataInitialized

bool CommonDataInitialized = false
static

This global flag is shared by all client threads, and is used to indicate whether the common data has been initialized.

Warning
Use InitMutex, defined below, to protect accesses to this data.

◆ le_ifgen_InitMutexRef

le_mutex_Ref_t le_ifgen_InitMutexRef

Mutex and associated macros for use with the above CommonDataInitialized.