Struct JobData¶
Defined in File loadBalancerMaster.h
Struct Documentation¶
-
struct
parpe
::
JobData
¶ Data to be sent to workers
Public Functions
-
JobData
() = default¶
-
inline
JobData
(int *jobDone, pthread_cond_t *jobDoneChangedCondition, pthread_mutex_t *jobDoneChangedMutex)¶
Public Members
-
int
jobId
= -1¶ auto-assigned (unique number up to MAX_INT)
-
std::vector<char>
sendBuffer
¶ data to send
-
std::vector<char>
recvBuffer
¶ data to receive (set when job finished)
-
int *
jobDone
= nullptr¶ incremented by one, once the results have been received (if set)
-
pthread_cond_t *
jobDoneChangedCondition
= nullptr¶ is signaled after jobDone has been incremented (if set)
-
pthread_mutex_t *
jobDoneChangedMutex
= nullptr¶ is locked to signal jobDoneChangedCondition condition (if set)
-