vecmem 1.26.0
Loading...
Searching...
No Matches
abstract_event.hpp
1/*
2 * VecMem project, part of the ACTS project (R&D line)
3 *
4 * (c) 2022-2026 CERN for the benefit of the ACTS project
5 *
6 * Mozilla Public License Version 2.0
7 */
8#pragma once
9
10namespace vecmem {
11
22
24 virtual ~abstract_event() = default;
25
28 virtual void wait() = 0;
29
31 virtual bool is_ready() const = 0;
32
34 virtual void ignore() = 0;
35
36}; // struct abstract_event
37
38} // namespace vecmem
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16
Interface that language specific "events" need to implement.
Definition abstract_event.hpp:21
virtual ~abstract_event()=default
Virtual destructor to make vtable happy.
virtual bool is_ready() const =0
Function checking whether the event is complete without blocking.
virtual void wait()=0
Function that would block the current thread until the event is complete.
virtual void ignore()=0
Function telling the object not to wait for the underlying event.