mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix BufferedPacket race condition (fixes #2983)
This was caused by the use the non-threadsafe SharedBuffer in a threaded context.
This commit is contained in:
parent
bd0b469d3d
commit
8560ece02e
2 changed files with 9 additions and 1 deletions
|
@ -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 <typename T>
|
||||
class SharedBuffer
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue