integration/gwnavgenerationglue/tbbparallelforinterface.h Source File

tbbparallelforinterface.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
10 
11 namespace KyGlue
12 {
13 
14 class TbbParallelForInterface_Implementation;
15 
23 {
24 public:
26  virtual ~TbbParallelForInterface();
27  virtual KyResult Init();
28  virtual KyResult Terminate();
29  virtual KyResult ParallelFor(void** elements, KyUInt32 elementsCount, Kaim::IParallelElementFunctor* elementFunctor);
30 
31 private:
32  TbbParallelForInterface_Implementation* m_impl;
33 };
34 
35 
36 }
37 
38 
virtual KyResult ParallelFor(void **elements, KyUInt32 elementsCount, Kaim::IParallelElementFunctor *elementFunctor)
This is the main method of the IParallelForInterface: it is called by Autodesk Navigation to manage t...
Definition: tbbparallelforinterface.cpp:22
Provides an abstract base interface for an object that can treat computational jobs in parallel...
Definition: iparallelforinterface.h:36
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Definition: defaultgeneratorglue.h:14
Provides an abstract base interface for an object that treats an element of data that can be passed t...
Definition: iparallelforinterface.h:21
This implementation of Kaim::IParallelForInterface uses the open-source Threaded Building Blocks (TBB...
Definition: tbbparallelforinterface.h:22
Navigation return code class.
Definition: types.h:108
virtual KyResult Init()
This method is expected to perform whatever steps are needed to initialize the parallelization mechan...
Definition: tbbparallelforinterface.cpp:19
virtual KyResult Terminate()
This method is expected to perform whatever steps are needed to shut down the parallelization mechani...
Definition: tbbparallelforinterface.cpp:20