mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Tidy up move obsolete and deprecated files
This commit is contained in:
44
modules/ripple_app/boost/ripple_IoService.cpp
Normal file
44
modules/ripple_app/boost/ripple_IoService.cpp
Normal file
@@ -0,0 +1,44 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
namespace basio
|
||||
{
|
||||
|
||||
IoService* IoService::New (std::size_t concurrency_hint)
|
||||
{
|
||||
return new IoService (concurrency_hint);
|
||||
}
|
||||
|
||||
IoService::~IoService ()
|
||||
{
|
||||
}
|
||||
|
||||
IoService::operator boost::asio::io_service& ()
|
||||
{
|
||||
return *m_impl;
|
||||
}
|
||||
|
||||
IoService::IoService (std::size_t concurrency_hint)
|
||||
: m_impl (new boost::asio::io_service (concurrency_hint))
|
||||
{
|
||||
}
|
||||
|
||||
void IoService::stop ()
|
||||
{
|
||||
m_impl->stop ();
|
||||
}
|
||||
|
||||
bool IoService::stopped ()
|
||||
{
|
||||
return m_impl->stopped ();
|
||||
}
|
||||
|
||||
void IoService::run ()
|
||||
{
|
||||
m_impl->run ();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user