mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
formatting
This commit is contained in:
@ -2461,7 +2461,6 @@ int startStateMachine() {
|
||||
Feb_Control_Get_Counter_Bit()));
|
||||
Feb_Control_PrepareForAcquisition();
|
||||
|
||||
|
||||
LOG(logINFO, ("Acquisition started bit toggled\n"));
|
||||
int ret = OK, prev_flag;
|
||||
// get the DAQ toggle bit
|
||||
@ -2779,7 +2778,7 @@ void *start_timer(void *arg) {
|
||||
#endif
|
||||
|
||||
int stopStateMachine() {
|
||||
|
||||
|
||||
// acq lock for seamless stop
|
||||
sharedMemory_lockAcqFlag();
|
||||
|
||||
|
@ -159,8 +159,7 @@ int sharedMemory_initialize() {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
if (pthread_mutex_init(&(shm->lockAcqFlag), &lockAcqFlagAttribute) !=
|
||||
0) {
|
||||
if (pthread_mutex_init(&(shm->lockAcqFlag), &lockAcqFlagAttribute) != 0) {
|
||||
LOG(logERROR, ("Failed to initialize pthread_mutex_t lockAcqFlag for "
|
||||
"shared memory\n"));
|
||||
return FAIL;
|
||||
@ -293,7 +292,5 @@ void sharedMemory_unlockLocalLink() {
|
||||
|
||||
void sharedMemory_lockAcqFlag() { pthread_mutex_lock(&(shm->lockAcqFlag)); }
|
||||
|
||||
void sharedMemory_unlockAcqFlag() {
|
||||
pthread_mutex_unlock(&(shm->lockAcqFlag));
|
||||
}
|
||||
void sharedMemory_unlockAcqFlag() { pthread_mutex_unlock(&(shm->lockAcqFlag)); }
|
||||
#endif
|
Reference in New Issue
Block a user