Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:13

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2022-2024 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // Project include(s).
0011 #include "traccc/options/details/interface.hpp"
0012 
0013 // System include(s).
0014 #include <cstddef>
0015 
0016 namespace traccc::opts {
0017 
0018 /// Option(s) for multi-threaded code execution
0019 class threading : public interface {
0020  public:
0021   /// @name Options
0022   /// @{
0023 
0024   /// The number of threads to use for the data processing
0025   std::size_t threads = 1;
0026 
0027   /// @}
0028 
0029   /// Constructor
0030   threading();
0031 
0032   /// Read/process the command line options
0033   ///
0034   /// @param vm The command line options to interpret/read
0035   ///
0036   void read(const boost::program_options::variables_map& vm) override;
0037 
0038   std::unique_ptr<configuration_printable> as_printable() const override;
0039 };  // struct threading
0040 
0041 }  // namespace traccc::opts