Main MRPT website > C++ reference for MRPT 1.5.6
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
GLvoid *typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1745
A thread-safe template queue for object passing between threads; for a template argument of T...
CThreadSafeQueue< TRegisterFunction > BASE_IMPEXP & pending_class_registers()
void(* TRegisterFunction)()
volatile bool BASE_IMPEXP pending_class_registers_modified
Set to true if pending_class_registers() has been called after registerAllPendingClasses(). Startup value is false.
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.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018