Skip to content

Commit

Permalink
Improve granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Feb 26, 2024
1 parent d3e9dbe commit ee6c614
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/aws/common/atomics_msvc.inl
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,13 @@ void aws_atomic_thread_fence(enum aws_memory_order order) {
AWS_INTERLOCKED_INT(Exchange)(&x, 1);
break;
case aws_memory_order_release:
W_BARRIER();
SW_BARRIER();
break;
case aws_memory_order_acquire:
R_BARRIER();
SW_BARRIER();
break;
case aws_memory_order_acq_rel:
RW_BARRIER();
SW_BARRIER();
Expand Down

0 comments on commit ee6c614

Please sign in to comment.