Tempo ramps - audio-locked meters have a bbt of 1|1|0
[ardour.git] / libs / pbd / pbd / destructible.h
index 8cc0113ff7f714a50341a495a0d4848725b0ef24..261697cafa05cbde4d94203b91c38eb9c7e7666e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #define __pbd_destructible_h__
 
 #include "pbd/signals.h"
+#include "pbd/libpbd_visibility.h"
 
 namespace PBD {
 
-class Destructible {
+class LIBPBD_API Destructible {
   public:
-        Destructible() : refs_dropped (false){}
-       virtual ~Destructible () {}
-       
-       PBD::Signal0<void> GoingAway;
-       void drop_references () { if (!refs_dropped) { GoingAway(); } refs_dropped = true; }
-
-  private:
-       bool refs_dropped;
+        Destructible() {}
+       virtual ~Destructible () { Destroyed(); }
+
+       PBD::Signal0<void> Destroyed;
+       PBD::Signal0<void> DropReferences;
+
+       void drop_references () { DropReferences();  }
 };
 
 }