Header files adjustment
(MQTT changes split from original commit - @projectgus.)
This commit is contained in:
parent
94a953d3e3
commit
5c1ce0a508
3 changed files with 22 additions and 9 deletions
|
|
@ -46,14 +46,30 @@ public:
|
|||
*/
|
||||
inline mutex_t()
|
||||
{
|
||||
mutex = xSemaphoreCreateMutex();
|
||||
mutex = 0;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
inline int mutex_create()
|
||||
{
|
||||
mutex = xSemaphoreCreateMutex();
|
||||
|
||||
if(mutex == NULL) {
|
||||
return -1;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
inline ~mutex_t()
|
||||
inline void mutex_destroy()
|
||||
{
|
||||
vQueueDelete(mutex);
|
||||
mutex = 0;
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue