integration/gwnavgenerationglue/tbbparallelforinterface/tbbparallelforinterface.h Source File

tbbparallelforinterface.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 
8 
9 #ifndef KyGlue_TbbParallelForInterface_H
10 #define KyGlue_TbbParallelForInterface_H
11 
12 
14 
15 
16 namespace KyGlue
17 {
18 
19 class TbbParallelForInterface_Implementation;
20 
25 class TbbParallelForInterface : public Kaim::IParallelForInterface
26 {
27 public:
29  virtual ~TbbParallelForInterface();
30  virtual KyResult Init();
31  virtual KyResult Terminate();
32  virtual KyResult ParallelFor(void** elements, KyUInt32 elementsCount, Kaim::IParallelElementFunctor* elementFunctor);
33 
34 private:
35  TbbParallelForInterface_Implementation* m_impl;
36 };
37 
38 
39 }
40 
41 
42 #endif
virtual KyResult ParallelFor(void **elements, KyUInt32 elementsCount, Kaim::IParallelElementFunctor *elementFunctor)
This is the main method of the IParallelForInterface: it is called by Gameware Navigation to manage t...
Definition: tbbparallelforinterface.cpp:23
Provides an abstract base interface for an object that can treat computational jobs in parallel...
Definition: iparallelforinterface.h:43
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
Definition: defaultgeneratorglue.h:20
Provides an abstract base interface for an object that treats an element of data that can be passed t...
Definition: iparallelforinterface.h:26
This implementation of Kaim::IParallelForInterface uses the open-source Threaded Building Blocks (TBB...
Definition: tbbparallelforinterface.h:26
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
virtual KyResult Init()
This method is expected to perform whatever steps are needed to initialize the parallelization mechan...
Definition: tbbparallelforinterface.cpp:20
virtual KyResult Terminate()
This method is expected to perform whatever steps are needed to shut down the parallelization mechani...
Definition: tbbparallelforinterface.cpp:21