Main MRPT website > C++ reference for MRPT 1.9.9
internal_class_registry.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef internal_class_registry_H
10 #define internal_class_registry_H
11 
13 #include <atomic>
14 
15 namespace mrpt
16 {
17 namespace utils
18 {
19 typedef void (*TRegisterFunction)(); // A void(void) function
20 
21 // Use a queue for the pending register issues, but also an atomic counter,
22 // which is much faster to check than a CS.
23 std::atomic<int>& pending_class_registers_count();
25 /** Set to true if pending_class_registers() has been called after
26  * registerAllPendingClasses(). Startup value is false. */
27 extern volatile bool pending_class_registers_modified;
28 
29 } // End of namespace
30 } // End of namespace
31 
32 #endif
void(* TRegisterFunction)()
A thread-safe template queue for object passing between threads; for a template argument of T...
CThreadSafeQueue< TRegisterFunction > & pending_class_registers()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
volatile bool pending_class_registers_modified
Set to true if pending_class_registers() has been called after registerAllPendingClasses().
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
std::atomic< int > & pending_class_registers_count()



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019