Using mutexes around accesses to refcounts seems to make the Windows build much less...
[synfig.git] / ETL / trunk / ETL / handle
index 9c3347e..d957f76 100644 (file)
@@ -6,6 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002 Robert B. Quattlebaum Jr.
+**     Copyright (c) 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
 
 #include "etl_config.h"
 
+// include the next line in an attempt to increase stability
+// it seems to make things much *less* stable on MS Windows
+#ifndef _WIN32
+#define ETL_LOCK_REFCOUNTS
+#endif
+
+#ifdef ETL_LOCK_REFCOUNTS
+#  include "mutex"
+#endif
+
 #include "_handle.h"
 
 /* === E N D =============================================================== */