Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+5 -2
View File
@@ -35,6 +35,7 @@
#include "PTL/Task.hh"
#include "PTL/ThreadData.hh"
#include "PTL/ThreadPool.hh"
#include "PTL/Utility.hh"
#include <atomic>
#include <cstdint>
@@ -62,6 +63,7 @@ get_default_threadpool();
intmax_t
get_task_depth();
} // namespace internal
template <typename Tp, typename Arg = Tp, intmax_t MaxDepth = 0>
class TaskGroup
{
@@ -112,9 +114,9 @@ public:
// define move-construct
TaskGroup(this_type&& rhs) = default;
// delete copy-assign
this_type& operator=(const this_type& rhs) = delete;
TaskGroup& operator=(const this_type& rhs) = delete;
// define move-assign
this_type& operator=(this_type&& rhs) = default;
TaskGroup& operator=(this_type&& rhs) = default;
public:
template <typename Up>
@@ -156,6 +158,7 @@ public:
void notify();
void notify_all();
void reserve(size_t _n)
{
m_task_list.reserve(_n);