mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use deleted members to prevent copying in Beast (RIPD-268)
This commit is contained in:
committed by
Vinnie Falco
parent
cd97b5beec
commit
60330da25c
@@ -25,7 +25,6 @@
|
||||
#define BEAST_THREADS_WAITABLEEVENT_H_INCLUDED
|
||||
|
||||
#include <beast/Config.h>
|
||||
#include <beast/Uncopyable.h>
|
||||
|
||||
#if ! BEAST_WINDOWS
|
||||
#include <pthread.h>
|
||||
@@ -39,7 +38,6 @@ namespace beast {
|
||||
method.
|
||||
*/
|
||||
class WaitableEvent
|
||||
: public Uncopyable
|
||||
//, LeakChecked <WaitableEvent> // VFALCO TODO Move LeakChecked to beast/
|
||||
{
|
||||
public:
|
||||
@@ -62,6 +60,9 @@ public:
|
||||
*/
|
||||
~WaitableEvent();
|
||||
|
||||
WaitableEvent (WaitableEvent const&) = delete;
|
||||
WaitableEvent& operator= (WaitableEvent const&) = delete;
|
||||
|
||||
//==============================================================================
|
||||
/** Suspends the calling thread until the event has been signalled.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user