Browse Source

pipeline: make BlockerSimple constexpr (needed by MutexSimpleImpl)

rdb 7 years ago
parent
commit
0c9c698d13
2 changed files with 2 additions and 10 deletions
  1. 0 8
      panda/src/pipeline/blockerSimple.I
  2. 2 2
      panda/src/pipeline/blockerSimple.h

+ 0 - 8
panda/src/pipeline/blockerSimple.I

@@ -11,14 +11,6 @@
  * @date 2007-06-20
  * @date 2007-06-20
  */
  */
 
 
-/**
- *
- */
-INLINE BlockerSimple::
-BlockerSimple() {
-  _flags = 0;
-}
-
 /**
 /**
  *
  *
  */
  */

+ 2 - 2
panda/src/pipeline/blockerSimple.h

@@ -28,7 +28,7 @@
  */
  */
 class EXPCL_PANDA_PIPELINE BlockerSimple {
 class EXPCL_PANDA_PIPELINE BlockerSimple {
 protected:
 protected:
-  INLINE BlockerSimple();
+  constexpr BlockerSimple() = default;
   INLINE ~BlockerSimple();
   INLINE ~BlockerSimple();
 
 
 protected:
 protected:
@@ -38,7 +38,7 @@ protected:
     F_has_waiters  = 0x40000000,
     F_has_waiters  = 0x40000000,
   };
   };
 
 
-  unsigned int _flags;
+  unsigned int _flags = 0;
 
 
   friend class ThreadSimpleManager;
   friend class ThreadSimpleManager;
 };
 };