Major changes to socket scheduling in EPoll.

This commit is contained in:
barant committed 2020-02-29 19:27:58 -08:00
1 parent 790906a6dc
commit a5a51f8aae
512 files changed
+22663 -2121

No files matched your search

+7 -3
View File
@@ -39,7 +39,7 @@ namespace core {
EPoll();
///
/// The destructor for the BMAEPoll object.
/// The destructor for the BMAEPoll object.
///
~EPoll();
@@ -111,7 +111,9 @@ namespace core {
///
int processCommand(std::string command, TCPSession *session, std::stringstream &data) override; ///<Output the threads array to the console.
void resetSocket(Socket *socket);
private:
int epfd;
@@ -120,7 +122,9 @@ namespace core {
std::vector<Thread> threads;
volatile bool terminateThreads;
std::mutex lock;
void enableSocket(Socket *socket);
void disableSocket(Socket *socket);
};
}