+2007-10-10 Jason Merrill <jason@redhat.com>
+
+ * libsupc++/guard.cc (struct mutex_wrapper): Move into
+ anonymous namespace.
+
2007-10-10 Paolo Carlini <pcarlini@suse.de>
* include/debug/list (list<>::list(list&&)): Fix.
__gthread_once(&once, init);
return *static_mutex;
}
+
+ // Simple wrapper for exception safety.
+ struct mutex_wrapper
+ {
+ bool unlock;
+ mutex_wrapper() : unlock(true)
+ { get_static_mutex().lock(); }
+
+ ~mutex_wrapper()
+ {
+ if (unlock)
+ static_mutex->unlock();
+ }
+ };
}
#ifdef __GTHREAD_HAS_COND
return 1;
}
- // Simple wrapper for exception safety.
- struct mutex_wrapper
- {
-#ifdef __GTHREADS
- bool unlock;
- mutex_wrapper() : unlock(true)
- { get_static_mutex().lock(); }
-
- ~mutex_wrapper()
- {
- if (unlock)
- static_mutex->unlock();
- }
-#endif
- };
-
extern "C"
int __cxa_guard_acquire (__guard *g)
{