Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRestEventRateAnalysisProcess: auto adjust under single/multi thread condition #171

Merged
merged 6 commits into from
Jul 29, 2022

Conversation

nkx111
Copy link
Member

@nkx111 nkx111 commented Mar 28, 2022

nkx111 Ok: 31

The observable SecondsFromStart and HoursFromStart in TRestEventRateAnalysisProcess are not single thread observables. We can preserve multi-thread run for TRestEventRateAnalysisProcess if we don't need the rate observables.

So this PR changes: if TRestEventRateAnalysisProcess detects that it is being running under multi-thread, it will turn off the observable EventTimeDelay and MeanRate_InHz automatically.

@nkx111 nkx111 marked this pull request as ready for review March 28, 2022 22:51
@nkx111 nkx111 requested a review from jgalan March 28, 2022 22:51
@jgalan jgalan requested a review from a team April 3, 2022 18:20
@jgalan jgalan requested a review from lobis June 9, 2022 19:07
@jgalan jgalan unassigned lobis Jun 9, 2022
@jgalan
Copy link
Member

jgalan commented Jul 21, 2022

What about this PR? Should be approved or closed?

@nkx111 nkx111 requested a review from Vindaar July 29, 2022 06:34
@nkx111
Copy link
Member Author

nkx111 commented Jul 29, 2022

What about this PR? Should be approved or closed?

still waiting for approval

Comment on lines +58 to +63
if (fRateAnalysis) {
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl;
}
else {
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (fRateAnalysis) {
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl;
}
else {
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl;
}
if (fRateAnalysis) {
RESTMetadata << "Rate analysis is on under single thread mode" << RESTendl;
}
else {
RESTMetadata << "Rate analysis is off due to multi-thread" << RESTendl;
}

Copy link
Member

@Vindaar Vindaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore the whitespace.

@nkx111 nkx111 merged commit a325b35 into master Jul 29, 2022
@nkx111 nkx111 deleted the nkx111-patch-2 branch July 29, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants