Make the shutdown_service() member functions private.

This commit is contained in:
Christopher Kohlhoff 2011-02-26 09:26:48 +11:00
parent 327671da32
commit 0e45b5cd32
14 changed files with 82 additions and 82 deletions

View File

@ -89,12 +89,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new datagram socket implementation.
void construct(implementation_type& impl)
{
@ -339,6 +333,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -71,12 +71,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new timer implementation.
void construct(implementation_type& impl)
{
@ -142,6 +136,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -76,12 +76,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new resolver implementation.
void construct(implementation_type& impl)
{
@ -131,6 +125,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// Perform any fork-related housekeeping.
void fork_service(asio::io_service::fork_event event)
{

View File

@ -77,12 +77,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new stream descriptor implementation.
void construct(implementation_type& impl)
{
@ -209,6 +203,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -89,12 +89,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new raw socket implementation.
void construct(implementation_type& impl)
{
@ -339,6 +333,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -91,12 +91,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new sequenced packet socket implementation.
void construct(implementation_type& impl)
{
@ -306,6 +300,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -83,12 +83,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new serial port implementation.
void construct(implementation_type& impl)
{
@ -203,6 +197,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -53,12 +53,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new signal set implementation.
void construct(implementation_type& impl)
{
@ -107,6 +101,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// Perform any fork-related housekeeping.
void fork_service(asio::io_service::fork_event event)
{

View File

@ -89,12 +89,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new socket acceptor implementation.
void construct(implementation_type& impl)
{
@ -245,6 +239,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -61,11 +61,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
}
/// Return a null context implementation.
impl_type null() const
{
@ -160,6 +155,11 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
}
// The service that provides the platform-specific implementation.
service_impl_type& service_impl_;
};

View File

@ -61,11 +61,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
}
/// Return a null stream implementation.
impl_type null() const
{
@ -170,6 +165,11 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
}
// The service that provides the platform-specific implementation.
service_impl_type& service_impl_;
};

View File

@ -89,12 +89,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new stream socket implementation.
void construct(implementation_type& impl)
{
@ -302,6 +296,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -80,12 +80,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new random-access handle implementation.
void construct(implementation_type& impl)
{
@ -170,6 +164,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};

View File

@ -77,12 +77,6 @@ public:
{
}
/// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
/// Construct a new stream handle implementation.
void construct(implementation_type& impl)
{
@ -167,6 +161,12 @@ public:
}
private:
// Destroy all user-defined handler objects owned by the service.
void shutdown_service()
{
service_impl_.shutdown_service();
}
// The platform-specific implementation.
service_impl_type service_impl_;
};