summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2011-10-26 13:03:31 +0200
committerMurray Cumming <murrayc@murrayc.com>2011-10-26 13:03:56 +0200
commite753712a7db7bcd7513627b716ba7f0236efda63 (patch)
tree7151b4e4610755915dbfcd79055943c07e58a369
parent555b6915a71cf81e88c64185b487207953af2b64 (diff)
downloadglibmm-e753712a7db7bcd7513627b716ba7f0236efda63.tar.gz
Fix the deprecation ifdefs.
* glib/src/thread.hg: Move the deprecation ifdefs to avoid affecting non-deprecated API.
-rw-r--r--ChangeLog7
-rw-r--r--glib/src/thread.hg19
2 files changed, 19 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f72d33c..bab29b79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-26 Murray Cumming <murrayc@murrayc.com>
+
+ Fix the deprecation ifdefs.
+
+ * glib/src/thread.hg: Move the deprecation ifdefs to avoid affecting
+ non-deprecated API.
+
2.31.0.1:
2011-10-26 Murray Cumming <murrayc@murrayc.com>
diff --git a/glib/src/thread.hg b/glib/src/thread.hg
index ed612a70..054667a2 100644
--- a/glib/src/thread.hg
+++ b/glib/src/thread.hg
@@ -60,12 +60,6 @@ enum { THREAD_PRIORITY_NORMAL = GLIBMM_MACRO_DEFINITION_THREAD_PRIORITY_NORMAL }
#endif
-/** Initializer macro for Glib::StaticMutex.
- * @relates Glib::StaticMutex
- * @hideinitializer
- */
-#define GLIBMM_STATIC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
-
/** Initializer macro for Glib::StaticRecMutex.
* @relates Glib::StaticRecMutex
* @hideinitializer
@@ -118,6 +112,7 @@ void thread_init(GThreadFunctions* vtable = 0);
*/
bool thread_supported();
+_DEPRECATE_IFDEF_END
/** @defgroup Threads Threads
* Thread abstraction; including threads, different mutexes,
@@ -131,7 +126,7 @@ enum TryLock { TRY_LOCK };
class Mutex;
class RecMutex;
class RWLock;
-struct StaticMutex;
+
struct StaticRecMutex;
struct StaticRWLock;
@@ -312,6 +307,10 @@ class Thread::Exit
Thread* wrap(GThread* gobject);
+_DEPRECATE_IFDEF_START
+
+struct StaticMutex;
+
/** Like Glib::Mutex, but can be defined at compile time.
* Use @c GLIBMM_STATIC_MUTEX_INIT to initialize a StaticMutex:
* @code
@@ -339,6 +338,12 @@ struct StaticMutex
#endif
};
+/** Initializer macro for Glib::StaticMutex.
+ * @relates Glib::StaticMutex
+ * @hideinitializer
+ */
+#define GLIBMM_STATIC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
+
_DEPRECATE_IFDEF_END
/** Represents a mutex (mutual exclusion).