Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_thread_factory.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 #ifndef xmog_thread_factory_inc
6 #define xmog_thread_factory_inc
7 
63 
64 
73 class XMOG_DECLSPEC xmog_thread_factory
74 {
75 public:
76 
85  static int spawn( XMOG_THREAD_FUNC func,
86  void * arg = NULL );
87 
99  static int spawn_n( size_t count,
100  XMOG_THREAD_FUNC func,
101  void * arg = NULL );
102 
103 
110  static void wait_n( int grp_id );
111 
112 
116  static void cleanup();
117 
118 };
119 
120 
121 #endif /* xmog_thread_factory_inc */
xmog_thread_factory
A class to launch threads in a platform-portable manner.
Definition: xmog_thread_factory.h:73

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.