Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IRunQueueEventImpl.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IRunQueueEventImpl.h (C) 2000-2026 */
9/* */
10/* Interface for event implementation. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_COMMON_ACCELERATOR_IRUNQUEUEEVENTIMPL_H
13#define ARCCORE_COMMON_ACCELERATOR_IRUNQUEUEEVENTIMPL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/common/accelerator/CommonAcceleratorGlobal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::Accelerator::Impl
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
32class ARCCORE_COMMON_EXPORT IRunQueueEventImpl
33{
34 public:
35
36 virtual ~IRunQueueEventImpl() = default;
37
38 public:
39
40 virtual void recordQueue(IRunQueueStream* stream) = 0;
41 virtual void wait() = 0;
42 virtual void waitForEvent(IRunQueueStream* stream) = 0;
43
45 virtual Int64 elapsedTime(IRunQueueEventImpl* from_event) = 0;
46
47 virtual bool hasPendingWork() = 0;
48};
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53} // namespace Arcane::Accelerator::Impl
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58#endif
Interface for event implementation.
virtual Int64 elapsedTime(IRunQueueEventImpl *from_event)=0
Elapsed time (in nanoseconds) between the event from_event and this event.
Interface of an execution stream for a RunQueue.
std::int64_t Int64
Signed integer type of 64 bits.