From 8560ece02e36b1e0ee7b86db2a38b8becbb639e4 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 6 Aug 2015 02:15:21 -0400 Subject: Fix BufferedPacket race condition (fixes #2983) This was caused by the use the non-threadsafe SharedBuffer in a threaded context. --- src/util/pointer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util/pointer.h') diff --git a/src/util/pointer.h b/src/util/pointer.h index 7922a9b39..7f6654787 100644 --- a/src/util/pointer.h +++ b/src/util/pointer.h @@ -178,6 +178,14 @@ private: unsigned int m_size; }; +/************************************************ + * !!! W A R N I N G !!! * + * !!! A C H T U N G !!! * + * * + * This smart pointer class is NOT thread safe. * + * ONLY use in a single-threaded context! * + * * + ************************************************/ template class SharedBuffer { -- cgit v1.2.3