HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_TBBProxy.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_TBBProxy.h (UT Library, C++)
7  *
8  * COMMENTS: Proxy interface for using TBB features that may not be
9  * available when loaded into a third-party application.
10  */
11 
12 #pragma once
13 
14 #ifndef __UT_TBBPROXY_H_INCLUDED__
15 #define __UT_TBBPROXY_H_INCLUDED__
16 
17 #include "UT_API.h"
18 #include <SYS/SYS_Allocator.h>
19 #include <stddef.h>
20 
22 {
23 public:
24 
25  static UT_TBBProxy* get();
26 
27  void * (*createTaskArena)(
28  void *arena, size_t sizeof_arena,
29  int max_concurrency, unsigned reserved_for_masters);
30 
31  void (*destroyTaskArena)(void *arena);
32  void (*taskArenaExecute)(
33  void *arena, void (*callback)(void *data), void *data);
34 
35 #if defined(TBBMALLOC_ENABLED)
36  int (*scalableAllocationCommand)(int cmd, void *param);
37 #endif
38 
39  void (*initializeTaskArena)(void *arena);
40 
41  class Lib;
42 
43 private:
44  UT_TBBProxy();
45 
46  friend class Lib;
47 };
48 
49 #endif // __UT_TBBPROXY_H_INCLUDED__
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void
Definition: png.h:1083
GLboolean * data
Definition: glcorearb.h:131
#define UT_API
Definition: UT_API.h:14
GLenum GLfloat param
Definition: glcorearb.h:104
Definition: format.h:1821