forked from boostorg/beast
Use deleted members to prevent copying in Beast (RIPD-268)
This commit is contained in:
1 parent
cd97b5beec
commit
60330da25c
48 files changed
+255
-191
No files matched your search
@@ -45,7 +45,7 @@ namespace beast {
|
||||
@see CriticalSection, WaitableEvent, Process, ThreadWithProgressWindow,
|
||||
MessageManagerLock
|
||||
*/
|
||||
class Thread : LeakChecked <Thread>, public Uncopyable
|
||||
class Thread : LeakChecked <Thread>
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -57,6 +57,9 @@ public:
|
||||
*/
|
||||
explicit Thread (const String& threadName);
|
||||
|
||||
Thread (Thread const&) = delete;
|
||||
Thread& operator= (Thread const&) = delete;
|
||||
|
||||
/** Destructor.
|
||||
|
||||
If the thread has not been stopped first, this will generate a fatal error.
|
||||
|
||||
Reference in new issue
Block a user