mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
locking
This commit is contained in:
parent
8c1a813214
commit
a20c2cdfb5
@ -2536,7 +2536,9 @@ void readFrame(int *ret, char *mess) {
|
|||||||
int isTransmitting = 1;
|
int isTransmitting = 1;
|
||||||
while (isTransmitting) {
|
while (isTransmitting) {
|
||||||
// wait for feb processing to be done
|
// wait for feb processing to be done
|
||||||
|
sharedMemory_lockLocalLink();
|
||||||
int i = Feb_Control_ProcessingInProgress();
|
int i = Feb_Control_ProcessingInProgress();
|
||||||
|
sharedMemory_unlockLocalLink();
|
||||||
if (i == STATUS_ERROR) {
|
if (i == STATUS_ERROR) {
|
||||||
strcpy(mess, "Could not read feb processing done register\n");
|
strcpy(mess, "Could not read feb processing done register\n");
|
||||||
*ret = (int)FAIL;
|
*ret = (int)FAIL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user