ATLAS Offline Software
Loading...
Searching...
No Matches
StreamPool.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4//
5
6
7#ifndef ATHCUDASERVICES_STREAMPOOL_H
8#define ATHCUDASERVICES_STREAMPOOL_H
9
10
11#include "AthCUDACore/Macros.cuh"
12#include <memory>
13
14
15namespace AthCUDA {
16
17
18class StreamPoolImpl;
20{
21public:
22 using ptr = void*;
23 StreamPool();
25 bool empty() const;
26 ptr pop();
27 void push( const ptr& s );
28
29
30private:
31 std::unique_ptr<StreamPoolImpl> m_impl;
32};
33
34
35} // namespace AthCUDA
36
37
38#endif // not ATHCUDASERVICES_STREAMPOOL_H
void push(const ptr &s)
bool empty() const
std::unique_ptr< StreamPoolImpl > m_impl
Definition StreamPool.h:31
Definition Info.h:14