File tree 2 files changed +14
-1
lines changed
qthread-src/include/qthread
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,16 @@ index 2ac887ed..2312c954 100644
102
102
pthread_exit(NULL);
103
103
```
104
104
105
+ ```
106
+ --- a/include/qthread/qthread.h
107
+ +++ b/include/qthread/qthread.h
108
+ @@ -87,7 +87,7 @@ using std::memory_order_relaxed;
109
+
110
+ #include "macros.h"
111
+
112
+ -#define MACHINE_FENCE atomic_thread_fence(memory_order_acq_rel);
113
+ +#define MACHINE_FENCE atomic_thread_fence(memory_order_seq_cst);
114
+
115
+ #if QTHREAD_ASSEMBLY_ARCH == QTHREAD_AMD64
116
+ #define QTHREAD_SWAPS_IMPLY_ACQ_REL_FENCES
117
+ ```
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ using std::memory_order_relaxed;
87
87
88
88
#include " macros.h"
89
89
90
- #define MACHINE_FENCE atomic_thread_fence (memory_order_acq_rel );
90
+ #define MACHINE_FENCE atomic_thread_fence (memory_order_seq_cst );
91
91
92
92
#if QTHREAD_ASSEMBLY_ARCH == QTHREAD_AMD64
93
93
#define QTHREAD_SWAPS_IMPLY_ACQ_REL_FENCES
You can’t perform that action at this time.
0 commit comments