mutex for close Mon and Rob
This commit is contained in:
parent
e479fec3eb
commit
cffd879ccb
1 changed files with 8 additions and 2 deletions
|
@ -423,8 +423,14 @@ void Tasks::ReceiveFromMonTask(void *arg) {
|
|||
sleep(1);
|
||||
|
||||
//All closes
|
||||
rt_mutex_acquire(&mutex_monitor, TM_INFINITE);
|
||||
monitor.Close();
|
||||
rt_mutex_release(&mutex_monitor);
|
||||
|
||||
|
||||
rt_mutex_acquire(&mutex_robot, TM_INFINITE);
|
||||
robot.Close();
|
||||
rt_mutex_release(&mutex_robot);
|
||||
|
||||
//Tasks::Join();
|
||||
|
||||
|
|
Loading…
Reference in a new issue