Move dummy_fd_set into Select
Now that we have select.cc.
This commit is contained in:
committed by
Keith Winstein
parent
768d4ce797
commit
7fc1aa30a5
@@ -19,3 +19,5 @@
|
|||||||
#include "select.h"
|
#include "select.h"
|
||||||
|
|
||||||
Select *Select::instance = NULL;
|
Select *Select::instance = NULL;
|
||||||
|
|
||||||
|
fd_set Select::dummy_fd_set;
|
||||||
|
|||||||
+1
-2
@@ -28,8 +28,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
static fd_set dummy_fd_set;
|
|
||||||
|
|
||||||
/* Convenience wrapper for select(2). */
|
/* Convenience wrapper for select(2). */
|
||||||
class Select {
|
class Select {
|
||||||
public:
|
public:
|
||||||
@@ -102,6 +100,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
int max_fd;
|
int max_fd;
|
||||||
|
static fd_set dummy_fd_set;
|
||||||
fd_set all_fds, read_fds, error_fds;
|
fd_set all_fds, read_fds, error_fds;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user