Delete unused code to handle posix signals in PhysicalSocketServer
Bug: None Change-Id: I3abddef4f1af5499f39a8d3f643c779effe9e01d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175006 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31237}
This commit is contained in:
@ -41,9 +41,6 @@ enum DispatcherEvent {
|
||||
};
|
||||
|
||||
class Signaler;
|
||||
#if defined(WEBRTC_POSIX)
|
||||
class PosixSignalDispatcher;
|
||||
#endif
|
||||
|
||||
class Dispatcher {
|
||||
public:
|
||||
@ -82,23 +79,6 @@ class RTC_EXPORT PhysicalSocketServer : public SocketServer {
|
||||
void Remove(Dispatcher* dispatcher);
|
||||
void Update(Dispatcher* dispatcher);
|
||||
|
||||
#if defined(WEBRTC_POSIX)
|
||||
// Sets the function to be executed in response to the specified POSIX signal.
|
||||
// The function is executed from inside Wait() using the "self-pipe trick"--
|
||||
// regardless of which thread receives the signal--and hence can safely
|
||||
// manipulate user-level data structures.
|
||||
// "handler" may be SIG_IGN, SIG_DFL, or a user-specified function, just like
|
||||
// with signal(2).
|
||||
// Only one PhysicalSocketServer should have user-level signal handlers.
|
||||
// Dispatching signals on multiple PhysicalSocketServers is not reliable.
|
||||
// The signal mask is not modified. It is the caller's responsibily to
|
||||
// maintain it as desired.
|
||||
virtual bool SetPosixSignalHandler(int signum, void (*handler)(int));
|
||||
|
||||
protected:
|
||||
Dispatcher* signal_dispatcher();
|
||||
#endif
|
||||
|
||||
private:
|
||||
typedef std::set<Dispatcher*> DispatcherSet;
|
||||
|
||||
@ -106,9 +86,6 @@ class RTC_EXPORT PhysicalSocketServer : public SocketServer {
|
||||
|
||||
#if defined(WEBRTC_POSIX)
|
||||
bool WaitSelect(int cms, bool process_io);
|
||||
static bool InstallSignal(int signum, void (*handler)(int));
|
||||
|
||||
std::unique_ptr<PosixSignalDispatcher> signal_dispatcher_;
|
||||
#endif // WEBRTC_POSIX
|
||||
#if defined(WEBRTC_USE_EPOLL)
|
||||
void AddEpoll(Dispatcher* dispatcher);
|
||||
|
||||
Reference in New Issue
Block a user