Main MRPT website > C++ reference for MRPT 1.5.5
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 
12 #include <mrpt/synch/atomic_incr.h>
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, which is much faster to check than a CS.
24  extern volatile bool BASE_IMPEXP pending_class_registers_modified; //!< Set to true if pending_class_registers() has been called after registerAllPendingClasses(). Startup value is false.
25 
26  } // End of namespace
27 } // End of namespace
28 
29 #endif
void(* TRegisterFunction)()
A thread-safe template queue for object passing between threads; for a template argument of T...
CThreadSafeQueue< TRegisterFunction > BASE_IMPEXP & pending_class_registers()
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
volatile bool BASE_IMPEXP pending_class_registers_modified
Set to true if pending_class_registers() has been called after registerAllPendingClasses(). Startup value is false.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
This class acts exactly as an int (or long) variable, but with atomic increment and decrement operato...
Definition: atomic_incr.h:37
mrpt::synch::CAtomicCounter BASE_IMPEXP & pending_class_registers_count()



Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019