Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/atomic

Issue 1286693006: [MIPS] Use nacl_atomic_is_lock_free instead of c11_atomic_is_lock_free (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-libcxx.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/atomic
diff --git a/include/atomic b/include/atomic
index fe856093528d5c4968339db1b0e58bdfb598abf0..c731485fecbab105626e7e7aef10c494053ad01b 100644
--- a/include/atomic
+++ b/include/atomic
@@ -818,7 +818,7 @@ struct __atomic_base // false
// @LOCALMOD-BEGIN The NaCl builtin delays resolution of the lock-free
// property until translation time (time at which the
// actual target is known).
-#if defined (__pnacl__)
+#if defined (__pnacl__) || (defined(__mips__) && defined (__native_client__))
_LIBCPP_INLINE_VISIBILITY
bool is_lock_free() const volatile _NOEXCEPT
{return __nacl_atomic_is_lock_free(sizeof(_Tp), &__a_);}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698