peerplays-fc/include/fc/interprocess/signals.hpp

12 lines
403 B
C++
Raw Normal View History

2013-11-24 18:00:21 +00:00
#pragma once
#include <functional>
#include <boost/asio/signal_set.hpp>
2013-11-24 18:00:21 +00:00
namespace fc
{
/// Set a handler to process an IPC (inter process communication) signal.
/// Handler will be called from ASIO thread.
/// @return shared pointer to the signal_set that holds the handler
std::shared_ptr<boost::asio::signal_set> set_signal_handler( std::function<void(int)> handler, int signal_num );
2013-11-24 18:00:21 +00:00
}