Commit 90c39c42 authored by Mark Grimes's avatar Mark Grimes

Remove extra blank line and redundant _ReadBarrier

parent 8d71618a
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <signal.h> #include <signal.h>
#endif #endif
namespace kj { namespace kj {
#if _WIN32 #if _WIN32
...@@ -128,7 +127,6 @@ void* Thread::runThread(void* ptr) { ...@@ -128,7 +127,6 @@ void* Thread::runThread(void* ptr) {
void Thread::ThreadState::unref() { void Thread::ThreadState::unref() {
#if _MSC_VER #if _MSC_VER
if (_InterlockedDecrement(&refcount)) { if (_InterlockedDecrement(&refcount)) {
_ReadBarrier();
#else #else
if (__atomic_sub_fetch(&refcount, 1, __ATOMIC_RELEASE) == 0) { if (__atomic_sub_fetch(&refcount, 1, __ATOMIC_RELEASE) == 0) {
__atomic_thread_fence(__ATOMIC_ACQUIRE); __atomic_thread_fence(__ATOMIC_ACQUIRE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment