Main MRPT website > C++ reference for MRPT 1.5.7
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, which is much faster to check than a CS.
22  std::atomic<int> BASE_IMPEXP & pending_class_registers_count();
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
std::atomic< int > BASE_IMPEXP & pending_class_registers_count()



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019