Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
RunQueueEvent.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* RunQueueEvent.cc (C) 2000-2024 */
9/* */
10/* Evènement sur une file d'exécution. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/accelerator/core/RunQueueEvent.h"
15
16#include "arcane/accelerator/core/internal/IRunQueueEventImpl.h"
17#include "arcane/accelerator/core/Runner.h"
18#include "arcane/accelerator/core/internal/RunnerImpl.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::Accelerator
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
30RunQueueEvent(Runner& runner)
31{
32 m_p = runner._impl()->_createEvent();
33}
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
38RunQueueEvent::
39~RunQueueEvent()
40{
41 delete m_p;
42}
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
47void RunQueueEvent::
48wait()
49{
50 m_p->wait();
51}
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56} // End namespace Arcane::Accelerator
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
RunQueueEvent(Runner &runner)
Construit un évènement. Utiliser makeEvent() pour constuire une instance.
Gestionnaire d'exécution pour accélérateur.
Definition core/Runner.h:53
Espace de nom pour l'utilisation des accélérateurs.