Skip to content
Snippets Groups Projects
Commit 6dd1071e authored by Scott Snyder's avatar Scott Snyder Committed by Frank Winklmeier
Browse files

AFP_EventTPCnv: Fix thread-safety checker warnings.

AFP_EventTPCnv: Fix thread-safety checker warnings.

Fix (disabled-by-default) warnings about calling unchecked code.
parent 7729c6d3
No related branches found
No related tags found
16 merge requests!59674InDetPerformanceMonitoring with LumiBlock selection,!59383cppcheck in trigger code: Prefer prefix ++/-- operators for non-primitive types.,!58990Draft:Fixing bug in FTF config when running with Reco_tf,!58835DataQualityConfigurations: Modify L1Calo config for web display,!58791DataQualityConfigurations: Modify L1Calo config for web display,!58373Modification of V2.3 processing to work well with all clients,!58289New NVSI calibration,!58286New NVSI calibration,!58106Update NVSI example algorithm,!57937Draft: New nighlty test for trigger with a Run 4 single muon RDO,!57841Edits to ZDC signal processing in preparation for analysis of data from LHCf run,!57590Fixing LAr DT dumper,!57584Draft: LAr DB fixes,!57316ATR-26311 and ATR-25754 moving one dimuon and few egamma chains from dev to phys or MC,!57153AFP_EventTPCnv: Fix thread-safety checker warnings.,!57090ATLASRECTS-7305: fixes for large cluster building
Showing
with 26 additions and 18 deletions
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Declare the package name. # Declare the package name.
atlas_subdir( AFP_EventTPCnv ) atlas_subdir( AFP_EventTPCnv )
...@@ -24,7 +24,7 @@ foreach( test AFP_SiDigiCnv_p1_test ...@@ -24,7 +24,7 @@ foreach( test AFP_SiDigiCnv_p1_test
atlas_add_test( ${test} atlas_add_test( ${test}
SOURCES test/${test}.cxx SOURCES test/${test}.cxx
LINK_LIBRARIES GaudiKernel TestTools AFP_EventTPCnv ) LINK_LIBRARIES GaudiKernel TestTools AFP_EventTPCnv CxxUtils )
endforeach() endforeach()
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_SIDLocRecoEvCollectionCnv_p1.h" #include "AFP_EventTPCnv/AFP_SIDLocRecoEvCollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -57,7 +58,7 @@ void testit (const AFP_SIDLocRecoEvCollection& trans1) ...@@ -57,7 +58,7 @@ void testit (const AFP_SIDLocRecoEvCollection& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -76,7 +77,7 @@ void test1() ...@@ -76,7 +77,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_SIDLocRecoEvCollectionCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_SIDLocRecoEvCollectionCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_SIDLocRecoEventCnv_p1.h" #include "AFP_EventTPCnv/AFP_SIDLocRecoEventCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -47,7 +48,7 @@ void testit (const AFP_SIDLocRecoEvent& trans1) ...@@ -47,7 +48,7 @@ void testit (const AFP_SIDLocRecoEvent& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -61,7 +62,7 @@ void test1() ...@@ -61,7 +62,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_SIDLocRecoEventCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_SIDLocRecoEventCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_SIDSimHitCnv_p1.h" #include "AFP_EventTPCnv/AFP_SIDSimHitCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -53,7 +54,7 @@ void testit (const AFP_SIDSimHit& trans1) ...@@ -53,7 +54,7 @@ void testit (const AFP_SIDSimHit& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -81,7 +82,7 @@ void test1() ...@@ -81,7 +82,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_SIDSimHitCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_SIDSimHitCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_SiDigiCnv_p1.h" #include "AFP_EventTPCnv/AFP_SiDigiCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -42,7 +43,7 @@ void testit (const AFP_SiDigi& trans1) ...@@ -42,7 +43,7 @@ void testit (const AFP_SiDigi& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -59,7 +60,7 @@ void test1() ...@@ -59,7 +60,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_SiDigiCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_SiDigiCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_TDDigiCnv_p1.h" #include "AFP_EventTPCnv/AFP_TDDigiCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -41,7 +42,7 @@ void testit (const AFP_TDDigi& trans1) ...@@ -41,7 +42,7 @@ void testit (const AFP_TDDigi& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -57,7 +58,7 @@ void test1() ...@@ -57,7 +58,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_TDDigiCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_TDDigiCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_TDLocRecoEvCollectionCnv_p1.h" #include "AFP_EventTPCnv/AFP_TDLocRecoEvCollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -52,7 +53,7 @@ void testit (const AFP_TDLocRecoEvCollection& trans1) ...@@ -52,7 +53,7 @@ void testit (const AFP_TDLocRecoEvCollection& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -69,7 +70,7 @@ void test1() ...@@ -69,7 +70,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_TDLocRecoEvCollectionCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_TDLocRecoEvCollectionCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_TDLocRecoEventCnv_p1.h" #include "AFP_EventTPCnv/AFP_TDLocRecoEventCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -42,7 +43,7 @@ void testit (const AFP_TDLocRecoEvent& trans1) ...@@ -42,7 +43,7 @@ void testit (const AFP_TDLocRecoEvent& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -54,7 +55,7 @@ void test1() ...@@ -54,7 +55,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_TDLocRecoEventCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_TDLocRecoEventCnv_p1_test\n";
test1(); test1();
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef NDEBUG #undef NDEBUG
#include "AFP_EventTPCnv/AFP_TDSimHitCnv_p1.h" #include "AFP_EventTPCnv/AFP_TDSimHitCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h" #include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/MsgStream.h"
#include <cassert> #include <cassert>
...@@ -52,7 +53,7 @@ void testit (const AFP_TDSimHit& trans1) ...@@ -52,7 +53,7 @@ void testit (const AFP_TDSimHit& trans1)
} }
void test1() void test1 ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "test1\n"; std::cout << "test1\n";
Athena_test::Leakcheck check; Athena_test::Leakcheck check;
...@@ -79,7 +80,7 @@ void test1() ...@@ -79,7 +80,7 @@ void test1()
} }
int main() int main ATLAS_NOT_THREAD_SAFE ()
{ {
std::cout << "AFP_EventTPCnv/AFP_TDSimHitCnv_p1_test\n"; std::cout << "AFP_EventTPCnv/AFP_TDSimHitCnv_p1_test\n";
test1(); test1();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment