Project
Loading...
Searching...
No Matches
ServiceRegistryRef.cxx
Go to the documentation of this file.
1
// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
13
#include "
Framework/ServiceRegistryRef.h
"
14
namespace
o2::framework
{
15
16
ServiceRegistryRef
*
ServiceRegistryRef::globalDeviceRef
(
ServiceRegistryRef
*
ref
) {
17
static
ServiceRegistryRef
*globalRef =
nullptr
;
18
if
(!globalRef) {
19
globalRef =
ref
;
20
}
21
// We return a copy, so that it can be cache
22
return
globalRef;
23
}
24
25
}
ServiceRegistryRef.h
int
o2::framework::ServiceRegistryRef
Definition
ServiceRegistryRef.h:21
o2::framework::ServiceRegistryRef::globalDeviceRef
static ServiceRegistryRef * globalDeviceRef(ServiceRegistryRef *ref=nullptr)
Definition
ServiceRegistryRef.cxx:16
ref
GLint ref
Definition
glcorearb.h:291
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
BunchFilling.h:112
Framework
Core
src
ServiceRegistryRef.cxx
Generated on Sat Feb 21 2026 17:59:02 for Project by
1.9.8