forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move mutability of a member from TestCUDAAnalyzerGPUKernel to TestCUD…
…AAnalyzerGPU The point is that the member functions mutating the visible state should not be const even if they are thread safe. TestCUDAAnalyzerGPUKernel::analyzeAsync() mutates the visible state (by "filling a histogram"), so it should not be const. Declaring TestCUDAAnalyzerGPU::gpuAlgo_ as mutable is an improvement since filling the histogram does not really change the visible state of the EDAnalyzer (towards the framework).
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters