فهرست منبع

Changing <atomic> to follow Design A

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@116742 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 15 سال پیش
والد
کامیت
21ef47f436
3فایلهای تغییر یافته به همراه7 افزوده شده و 9976 حذف شده
  1. 1 9947
      include/atomic
  2. 0 23
      src/atomic.cpp
  3. 6 6
      www/atomic_design_a.html

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 9947
include/atomic


+ 0 - 23
src/atomic.cpp

@@ -1,23 +0,0 @@
-//===------------------------- atomic.cpp ---------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "__mutex_base"
-#include "atomic"
-
-_LIBCPP_BEGIN_NAMESPACE_STD
-
-_LIBCPP_VISIBLE
-mutex&
-__not_atomic_mut()
-{
-    static mutex m;
-    return m;
-}
-
-_LIBCPP_END_NAMESPACE_STD

+ 6 - 6
www/atomic_design_a.html

@@ -79,18 +79,18 @@ type __atomic_exchange(type* atomic_obj, type desired, int mem_ord);
 
 <font color="#C80000">// type must be trivially copyable</font>
 <font color="#C80000">// Behavior is defined for mem_success = [0 ... 5],</font>
-<font color="#C80000">//   mem_falure &lt;= mem_success</font>
-<font color="#C80000">//   mem_falure != 3</font>
-<font color="#C80000">//   mem_falure != 4</font>
+<font color="#C80000">//   mem_failure &lt;= mem_success</font>
+<font color="#C80000">//   mem_failure != 3</font>
+<font color="#C80000">//   mem_failure != 4</font>
 bool __atomic_compare_exchange_strong(type* atomic_obj,
                                       type* expected, type desired,
                                       int mem_success, int mem_failure);
 
 <font color="#C80000">// type must be trivially copyable</font>
 <font color="#C80000">// Behavior is defined for mem_success = [0 ... 5],</font>
-<font color="#C80000">//   mem_falure &lt;= mem_success</font>
-<font color="#C80000">//   mem_falure != 3</font>
-<font color="#C80000">//   mem_falure != 4</font>
+<font color="#C80000">//   mem_failure &lt;= mem_success</font>
+<font color="#C80000">//   mem_failure != 3</font>
+<font color="#C80000">//   mem_failure != 4</font>
 bool __atomic_compare_exchange_weak(type* atomic_obj,
                                     type* expected, type desired,
                                     int mem_success, int mem_failure);

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است