summaryrefslogtreecommitdiff
path: root/include/utils
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2016-04-05 10:55:13 -0700
committerGreg Kaiser <gkaiser@google.com>2016-04-05 12:38:47 -0700
commitd62698d4a3399ccdf27150a1701c6b1e3ba66ee7 (patch)
tree941efd187375d3d8593ab1c75c84f89c366eb4c5 /include/utils
parent1ab87e7712cea615ecdf70e65d74d14d3fd8fa85 (diff)
Mutex: Note that STL is generally prefered
This class was designed prior to Android having usable C++11 support. With that support now in place, we prefer people to start using the STL threading classes, unless the code needs to build on Win32. Change-Id: If1b4d9bdfcb1e65824909376f022842bab9653d6
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/Mutex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/Mutex.h b/include/utils/Mutex.h
index f027c799f..9b0b734d6 100644
--- a/include/utils/Mutex.h
+++ b/include/utils/Mutex.h
@@ -35,6 +35,10 @@ namespace android {
class Condition;
/*
+ * NOTE: This class is for code that builds on Win32. Its usage is
+ * deprecated for code which doesn't build for Win32. New code which
+ * doesn't build for Win32 should use std::mutex and std::lock_guard instead.
+ *
* Simple mutex class. The implementation is system-dependent.
*
* The mutex must be unlocked by the thread that locked it. They are not