You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2016/10/12 22:38:26 UTC
[trafficserver] 04/05: TS-4884: Remove a few unused
variables/define in EThread
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 7.0.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
commit ba657f1d4a6faead99e4b32e11dc8221849d0f76
Author: Masato Gosui <mg...@yahoo-corp.jp>
AuthorDate: Wed Sep 21 18:24:41 2016 +0900
TS-4884: Remove a few unused variables/define in EThread
(cherry picked from commit ba5c4a78699ce83a2327361b72532014ef274e0e)
---
iocore/eventsystem/I_EThread.h | 6 ------
iocore/eventsystem/UnixEThread.cc | 3 ---
2 files changed, 9 deletions(-)
diff --git a/iocore/eventsystem/I_EThread.h b/iocore/eventsystem/I_EThread.h
index cf0999d..9e673cd 100644
--- a/iocore/eventsystem/I_EThread.h
+++ b/iocore/eventsystem/I_EThread.h
@@ -40,9 +40,6 @@
// instead.
#define MUTEX_RETRY_DELAY HRTIME_MSECONDS(20)
-/** Maximum number of accept events per thread. */
-#define MAX_ACCEPT_EVENTS 20
-
struct DiskHandler;
struct EventIO;
@@ -295,9 +292,6 @@ public:
EThread **ethreads_to_be_signalled;
int n_ethreads_to_be_signalled;
- Event *accept_event[MAX_ACCEPT_EVENTS];
- int main_accept_index;
-
int id;
unsigned int event_types;
bool is_event_type(EventType et);
diff --git a/iocore/eventsystem/UnixEThread.cc b/iocore/eventsystem/UnixEThread.cc
index cfb12a1..131bd69 100644
--- a/iocore/eventsystem/UnixEThread.cc
+++ b/iocore/eventsystem/UnixEThread.cc
@@ -45,7 +45,6 @@ EThread::EThread()
: generator((uint64_t)Thread::get_hrtime_updated() ^ (uint64_t)(uintptr_t)this),
ethreads_to_be_signalled(NULL),
n_ethreads_to_be_signalled(0),
- main_accept_index(-1),
id(NO_ETHREAD_ID),
event_types(0),
signal_hook(0),
@@ -58,7 +57,6 @@ EThread::EThread(ThreadType att, int anid)
: generator((uint64_t)Thread::get_hrtime_updated() ^ (uint64_t)(uintptr_t)this),
ethreads_to_be_signalled(NULL),
n_ethreads_to_be_signalled(0),
- main_accept_index(-1),
id(anid),
event_types(0),
signal_hook(0),
@@ -95,7 +93,6 @@ EThread::EThread(ThreadType att, Event *e)
: generator((uint32_t)((uintptr_t)time(NULL) ^ (uintptr_t)this)),
ethreads_to_be_signalled(NULL),
n_ethreads_to_be_signalled(0),
- main_accept_index(-1),
id(NO_ETHREAD_ID),
event_types(0),
signal_hook(0),
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.