mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
stopping in virtual server needs a usleep before acquiring lock to get status
This commit is contained in:
@ -2347,7 +2347,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -2217,7 +2217,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -2556,7 +2556,7 @@ int stopStateMachine() {
|
|||||||
#ifdef VIRTUAL
|
#ifdef VIRTUAL
|
||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -1630,7 +1630,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
}
|
}
|
||||||
|
@ -1818,7 +1818,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -1980,7 +1980,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
return OK;
|
return OK;
|
||||||
|
@ -2261,7 +2261,7 @@ int stopStateMachine() {
|
|||||||
sharedMemory_setStop(1);
|
sharedMemory_setStop(1);
|
||||||
// read till status is idle
|
// read till status is idle
|
||||||
while (sharedMemory_getStatus() == RUNNING)
|
while (sharedMemory_getStatus() == RUNNING)
|
||||||
;
|
usleep(500);
|
||||||
sharedMemory_setStop(0);
|
sharedMemory_setStop(0);
|
||||||
LOG(logINFO, ("Stopped State Machine\n"));
|
LOG(logINFO, ("Stopped State Machine\n"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user