Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 10:11:32

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/g4/Threading.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/sys/ThreadId.hh"
0010 
0011 namespace celeritas
0012 {
0013 //---------------------------------------------------------------------------//
0014 
0015 // Get the worker stream ID for the program's main thread (null if MT)
0016 StreamId geant_main_stream();
0017 
0018 // Get a stream ID corresponding to the current Geant4 worker thread
0019 StreamId geant_stream();
0020 
0021 // Get the number of threads after initialization
0022 StreamId::size_type geant_num_threads();
0023 
0024 //---------------------------------------------------------------------------//
0025 }  // namespace celeritas