Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
LHCb
Commits
35280bbe
Commit
35280bbe
authored
3 years ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
Add UNLIKELY to RICH messaging macros
parent
7dca4857
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3061
Update RICH decoding for realistic cable maps from the pit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rich/RichFutureUtils/RichFutureUtils/RichMessaging.h
+4
-3
4 additions, 3 deletions
Rich/RichFutureUtils/RichFutureUtils/RichMessaging.h
with
4 additions
and
3 deletions
Rich/RichFutureUtils/RichFutureUtils/RichMessaging.h
+
4
−
3
View file @
35280bbe
...
...
@@ -12,6 +12,7 @@
#pragma once
#include
"GaudiKernel/Kernel.h"
#include
<utility>
namespace
{
...
...
@@ -31,15 +32,15 @@ namespace {
// pointer to the entity that implements the Gaudi based messaging API.
#ifndef _ri_debug
# define _ri_debug \
if ( messenger()->msgLevel( MSG::DEBUG ) ) messenger()->debug()
if (
UNLIKELY(
messenger()->msgLevel( MSG::DEBUG ) )
)
messenger()->debug()
#endif
#ifndef _ri_verbo
# define _ri_verbo \
if ( messenger()->msgLevel( MSG::VERBOSE ) ) messenger()->verbose()
if (
UNLIKELY(
messenger()->msgLevel( MSG::VERBOSE ) )
)
messenger()->verbose()
#endif
#ifndef ri_message
# define ri_message( level, ... ) \
if ( messenger()->msgLevel( level ) ) { rich_message( messenger()->msgStream( level ), __VA_ARGS__ ); }
if (
UNLIKELY(
messenger()->msgLevel( level ) )
)
{ rich_message( messenger()->msgStream( level ), __VA_ARGS__ ); }
# define ri_debug( ... ) ri_message( MSG::DEBUG, __VA_ARGS__ )
# define ri_verbo( ... ) ri_message( MSG::VERBOSE, __VA_ARGS__ )
# ifndef NDEBUG
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment