mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 09:30:40 +02:00
not yet gotthard
This commit is contained in:
parent
0e4c7a9494
commit
0dccd78567
@ -734,19 +734,20 @@ int UDPStandardImplementation::SetupFifoStructure() {
|
||||
//listen to only n jobs at a time
|
||||
if (frameToGuiFrequency)
|
||||
numberofJobs = frameToGuiFrequency;
|
||||
else {
|
||||
|
||||
/*else { NOT YET
|
||||
//random freq depends on acquisition period/time (calculate upto 100ms/period)
|
||||
int i = ((acquisitionPeriod > 0) ?
|
||||
(SAMPLE_TIME_IN_NS/acquisitionPeriod):
|
||||
((acquisitionTime > 0) ? (SAMPLE_TIME_IN_NS/acquisitionTime) : SAMPLE_TIME_IN_NS));
|
||||
//must be > 0 and < max jobs
|
||||
numberofJobs = ((i < 1) ? 1 : ((i > MAX_JOBS_PER_THREAD) ? MAX_JOBS_PER_THREAD : i));
|
||||
}
|
||||
}*/
|
||||
FILE_LOG (logINFO) << "Number of Jobs Per Thread:" << numberofJobs << endl;
|
||||
|
||||
uint32_t oldfifodepth = fifoDepth;
|
||||
//reduce fifo depth if numberofJobsPerBuffer > 1 (to save memory)
|
||||
if (numberofJobs >1) {
|
||||
if (numberofJobs > 1) {
|
||||
fifoDepth = ((fifoDepth % numberofJobs) ?
|
||||
((fifoDepth/numberofJobs)+1) : //if not directly divisible
|
||||
(fifoDepth/numberofJobs));
|
||||
|
Loading…
x
Reference in New Issue
Block a user