[glibmm] Threads: Add @deprecated to more API.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Threads: Add @deprecated to more API.
- Date: Sat, 28 Nov 2015 12:23:38 +0000 (UTC)
commit 3a8291ab820f847a186326380b7dbbb46e3db70e
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Nov 28 13:02:41 2015 +0100
Threads: Add @deprecated to more API.
glib/src/threads.hg | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/glib/src/threads.hg b/glib/src/threads.hg
index 2cbd3f7..0dcaa49 100644
--- a/glib/src/threads.hg
+++ b/glib/src/threads.hg
@@ -51,7 +51,10 @@ _GMMPROC_EXTRA_NAMESPACE(Threads)
* @{
*/
+/// @deprecated Please use std::lock_guard or std::unique_lock instead.
enum NotLock { NOT_LOCK };
+
+/// @deprecated Please use std::lock_guard or std::unique_lock instead.
enum TryLock { TRY_LOCK };
class Mutex;
@@ -59,6 +62,8 @@ class RecMutex;
class RWLock;
/** %Exception class for thread-related errors.
+ *
+ * @deprecated Please use std::lock_guard or std::unique_lock instead.
*/
_WRAP_GERROR(ThreadError, GThreadError, G_THREAD_ERROR, NO_GTYPE)
@@ -175,6 +180,8 @@ private:
* Write this if you want to exit from a thread created by Threads::Thread::create().
* Of course you must make sure not to catch Threads::Thread::Exit by accident, i.e.
* when using <tt>catch(...)</tt> somewhere in your code.
+ *
+ * @deprecated Please use std::thread instead.
*/
class Thread::Exit
{};
@@ -185,6 +192,8 @@ class Thread::Exit
* @return The C++ wrapper.
*
* @relates Glib::Threads::Thread
+ *
+ * @deprecated Please use std::thread instead.
*/
Thread* wrap(GThread* gobject);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]