Use deleted members to prevent copying in Beast (RIPD-268)

This commit is contained in:
Nik Bougalis
2014-09-25 11:13:38 -07:00
committed by Vinnie Falco
parent cd97b5beec
commit 60330da25c
48 changed files with 255 additions and 191 deletions

View File

@@ -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.