From 1c1993acef94f8468d1df46f5bbfb08d123ca701 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Wed, 14 Dec 2011 13:38:16 +0900 Subject: [PATCH] Cleaned up code. --- src/thread_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread_base.cc b/src/thread_base.cc index 7080f8b0..9a42dc0d 100644 --- a/src/thread_base.cc +++ b/src/thread_base.cc @@ -82,7 +82,7 @@ public: throw torrent::internal_error("Overflowed thread_queue."); __sync_bool_compare_and_swap(itr, NULL, v); - __sync_bool_compare_and_swap(&m_lock, 1, 0); + unlock(); } value_type* copy_and_clear(value_type* dest) {