Reland "Delete unused code to handle posix signals in PhysicalSocketServer"
This is a reland of d2490aef20457f4e981e5cc14e84552389d2363b Earlier link errors were likely a single trybot with corrupted dep files. Original change's description: > 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} Bug: webrtc:11571 Change-Id: I7ea14f26a2186a9d51a75493b7280fc0ad6b8c77 Tbr: kwiberg@webrtc.org Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175042 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31251}
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