You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Cellular_Init_ function initializes all the library: create mutexes and all the stuff and with Platform_CreateDetachedThread function create/start the Read thread.
In case of error in Cellular_Init function, this try to cleanup all the allocated resources (Cellular_ModuleCleanUp and _Cellular_LibCleanup are executed). Cellular_ModuleCleanUp and _Cellular_LibCleanup destroy mutexes and all the stuff, except for the thread created by Platform_CreateDetachedThread. This can be a problem in case I would like to re-try to run Cellular_Init in case of error.
Is it possible to add Read thread destroy in cleanup procedure?
The text was updated successfully, but these errors were encountered:
@davideferrario
The thread cleanup can be handled in the Platform_CreateDetachedThread. Please reference our demo implementation.
The created task deletes itself in the wrapper function when it returns from it's thread routine.
_Cellular_Init_
function initializes all the library: create mutexes and all the stuff and withPlatform_CreateDetachedThread
function create/start the Read thread.In case of error in
Cellular_Init
function, this try to cleanup all the allocated resources (Cellular_ModuleCleanUp
and_Cellular_LibCleanup
are executed).Cellular_ModuleCleanUp
and_Cellular_LibCleanup
destroy mutexes and all the stuff, except for the thread created byPlatform_CreateDetachedThread
. This can be a problem in case I would like to re-try to runCellular_Init
in case of error.Is it possible to add Read thread destroy in cleanup procedure?
The text was updated successfully, but these errors were encountered: