ATLAS Offline Software
Loading...
Searching...
No Matches
TaskArena.cxx
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3//
4
6
7// Local include(s).
9
10#include <tbb/task_arena.h>
11
12namespace AthCUDA {
13
14 tbb::task_arena& taskArena() {
15
16 static tbb::task_arena arena ATLAS_THREAD_SAFE ( 1, 0 );
17 return arena;
18 }
19
20 void enqueueTask( std::function<void()> f ) {
21
22 taskArena().enqueue( f );
23 }
24
25} // namespace AthCUDA
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
Definition Info.h:14
tbb::task_arena & taskArena()
Definition TaskArena.cxx:14
void enqueueTask(std::function< void()> f)
Enqueue a function to the TBB task arena used for CUDA calls.
Definition TaskArena.cxx:20