Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
TaskFactoryInternal.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/* TaskFactoryInternal.h (C) 2000-2025 */
9/* */
10/* Internal Arcane API for 'TaskFactory'. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_CONCURRENCY_INTERNAL_TASKFACTORYINTERNAL_H
13#define ARCCORE_CONCURRENCY_INTERNAL_TASKFACTORYINTERNAL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/concurrency/ConcurrencyGlobal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
31class ARCCORE_CONCURRENCY_EXPORT TaskFactoryInternal
32{
33 public:
34
36 static void addThreadCreateObserver(IObserver* o);
37
40
42 static void notifyThreadCreated();
43
44 public:
45
46 static void setImplementation(ITaskImplementation* task_impl);
47};
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
51
52} // End namespace Arcane
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57#endif
Implementation of a task factory.
Internal Arcane API for 'TaskFactory'.
static void removeThreadCreateObserver(IObserver *o)
Removes an observer for thread creation.
static void notifyThreadCreated()
Notifies all observers of thread creation.
static void addThreadCreateObserver(IObserver *o)
Adds an observer for thread creation.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --