mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 05:50:14 +01:00
somewhere, but weird threads
This commit is contained in:
@@ -1191,11 +1191,6 @@ class multiSlsDetector : public slsDetectorUtils {
|
||||
*/
|
||||
int createReceivingDataThreads(bool destroy = false);
|
||||
|
||||
/**
|
||||
* Start Receiving Data Threads
|
||||
* @return OK or FAIL
|
||||
*/
|
||||
int startReceivingData();
|
||||
|
||||
|
||||
/** Reads frames from receiver through a constant socket
|
||||
@@ -1401,15 +1396,10 @@ private:
|
||||
char currentFileName[MAX_STR_LENGTH];
|
||||
|
||||
pthread_t receivingDataThreads[MAXDET];
|
||||
sem_t receivingDataSemaphore[MAXDET];
|
||||
/** Ensures if threads created successfully */
|
||||
bool threadStarted;
|
||||
/** Current Thread Index*/
|
||||
int currentThreadIndex;
|
||||
/** Mask with each bit indicating status of each receiving data thread */
|
||||
volatile uint64_t receivingDataThreadMask;
|
||||
/** Semaphore indicating socket created for each receiving data thread */
|
||||
sem_t receivingDataSocketsCreatedSemaphore[MAXDET];
|
||||
/** Set to self-terminate data receiving threads waiting for semaphores */
|
||||
bool killAllReceivingDataThreads;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user