poller_sigfd.h

来自「实现了poll/epoll/devpoll等C++封装」· C头文件 代码 · 共 26 行

H
26
字号
#ifndef Poller_sigfd_h#define Poller_sigfd_h#if HAVE_F_SETSIG && HAVE_F_SETAUXFL#include "Poller_sigio.h"/// Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch.class Poller_sigfd : public Poller_sigio {public:	/**	 Add a file descriptor to the set we monitor. 	 Caller should already have established a handler for SIGIO.	 @param fd file descriptor to add	 @param client object to handle events for this fd.  May use same client with more than one fd.	 @param eventmask initial event mask for this fd	 */	virtual int add(int fd, Client *client, short eventmask);	/// Remove a file descriptor.	virtual int del(int fd);};#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?