diff options
author | flz <flz@FreeBSD.org> | 2011-06-11 19:53:21 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2011-06-11 19:53:21 +0800 |
commit | 6fa060ee4f97ee54fecb50534d6667eef22b85fe (patch) | |
tree | 97e928467b2eaa91c66b383357f9b0736d7ae1c4 /net-p2p | |
parent | 4f6283cf77229dea69b18e3cf52ec103ddfe3bf8 (diff) | |
download | freebsd-ports-gnome-6fa060ee4f97ee54fecb50534d6667eef22b85fe.tar.gz freebsd-ports-gnome-6fa060ee4f97ee54fecb50534d6667eef22b85fe.tar.zst freebsd-ports-gnome-6fa060ee4f97ee54fecb50534d6667eef22b85fe.zip |
Fix local patch.
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/rtorrent-devel/files/patch-src_thread_base.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net-p2p/rtorrent-devel/files/patch-src_thread_base.cc b/net-p2p/rtorrent-devel/files/patch-src_thread_base.cc index 1119ac82fe18..0a84dda1069d 100644 --- a/net-p2p/rtorrent-devel/files/patch-src_thread_base.cc +++ b/net-p2p/rtorrent-devel/files/patch-src_thread_base.cc @@ -1,11 +1,11 @@ ---- src/thread_base.cc.orig 2011-06-07 12:06:49.729114328 -0400 -+++ src/thread_base.cc 2011-06-07 12:07:19.880080780 -0400 +--- src/thread_base.cc.orig 2011-04-05 11:26:11.000000000 +0100 ++++ src/thread_base.cc 2011-06-09 18:59:41.375670521 +0100 @@ -61,7 +61,7 @@ static const unsigned int max_size = 32; -- thread_queue_hack() { std::memset(m_queue, 0, sizeof(thread_queue_hack)); } -+ thread_queue_hack() : m_lock(0) { std::memset(m_queue, 0, sizeof(thread_queue_hack)); } +- thread_queue_hack() { std::memset(this, 0, sizeof(thread_queue_hack)); } ++ thread_queue_hack() : m_lock(0) { std::memset(this, 0, sizeof(thread_queue_hack)); } void lock() { while (!__sync_bool_compare_and_swap(&m_lock, 0, 1)) usleep(0); } void unlock() { __sync_bool_compare_and_swap(&m_lock, 1, 0); } |