2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-25 06:42:23 +00:00

Replace use of noncopyable with private copy operations, issue #3244

[SVN r62633]
This commit is contained in:
Anthony Williams
2010-06-09 06:58:35 +00:00
parent df2f43bc61
commit a1587d070f
5 changed files with 29 additions and 14 deletions

View File

@@ -18,10 +18,13 @@
namespace boost
{
class thread_group:
private noncopyable
class thread_group
{
private:
thread_group(thread_group const&);
thread_group& operator=(thread_group const&);
public:
thread_group() {}
~thread_group()
{
for(std::list<thread*>::iterator it=threads.begin(),end=threads.end();

View File

@@ -27,10 +27,11 @@
namespace boost
{
class mutex:
boost::noncopyable
class mutex
{
private:
mutex(mutex const&);
mutex& operator=(mutex const&);
pthread_mutex_t m;
public:
mutex()
@@ -83,9 +84,11 @@ namespace boost
typedef mutex try_mutex;
class timed_mutex:
boost::noncopyable
class timed_mutex
{
private:
timed_mutex(timed_mutex const&);
timed_mutex& operator=(timed_mutex const&);
private:
pthread_mutex_t m;
#ifndef BOOST_PTHREAD_HAS_TIMEDLOCK

View File

@@ -30,10 +30,11 @@
namespace boost
{
class recursive_mutex:
boost::noncopyable
class recursive_mutex
{
private:
recursive_mutex(recursive_mutex const&);
recursive_mutex& operator=(recursive_mutex const&);
pthread_mutex_t m;
public:
recursive_mutex()
@@ -92,9 +93,11 @@ namespace boost
typedef recursive_mutex recursive_try_mutex;
class recursive_timed_mutex:
boost::noncopyable
class recursive_timed_mutex
{
private:
recursive_timed_mutex(recursive_timed_mutex const&);
recursive_timed_mutex& operator=(recursive_timed_mutex const&);
private:
pthread_mutex_t m;
#ifndef BOOST_PTHREAD_HAS_TIMEDLOCK

View File

@@ -20,9 +20,11 @@
namespace boost
{
class recursive_mutex:
boost::noncopyable,
public ::boost::detail::basic_recursive_mutex
{
private:
recursive_mutex(recursive_mutex const&);
recursive_mutex& operator=(recursive_mutex const&);
public:
recursive_mutex()
{
@@ -40,9 +42,11 @@ namespace boost
typedef recursive_mutex recursive_try_mutex;
class recursive_timed_mutex:
boost::noncopyable,
public ::boost::detail::basic_recursive_timed_mutex
{
private:
recursive_timed_mutex(recursive_timed_mutex const&);
recursive_timed_mutex& operator=(recursive_timed_mutex const&);
public:
recursive_timed_mutex()
{

View File

@@ -19,9 +19,11 @@
namespace boost
{
class shared_mutex:
private boost::noncopyable
class shared_mutex
{
private:
shared_mutex(shared_mutex const&);
shared_mutex& operator=(shared_mutex const&);
private:
struct state_data
{