diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2015-08-13 14:39:58 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-08-21 05:03:06 -0700 |
commit | d80537d8e588da57db609332c2d89873e0a368ca (patch) | |
tree | 24891f4c94d3b5542e8404f6c074870863b922ac /libglusterfs/src/event.h | |
parent | e4cefd6c5915dd47c6b42098236df3901665f93a (diff) |
event: add dispatched flag to know if event_dispatch was called
This is important for glusterfs processes that choose to reconfigure
no. of event-threads (a.k.a epoll worker-threads) before they call
event_dispatch on the event_pool. glusterd needs this today.
Change-Id: Ia8df3c958545324472262c555ed84b71797f002e
BUG: 1242421
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/11911
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'libglusterfs/src/event.h')
-rw-r--r-- | libglusterfs/src/event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/event.h b/libglusterfs/src/event.h index b01ef24bb8e..8253034680c 100644 --- a/libglusterfs/src/event.h +++ b/libglusterfs/src/event.h @@ -57,6 +57,7 @@ struct event_pool { * and live status */ int destroy; int activethreadcount; + char dispatched; /* Is set if event_dispatch was called */ }; struct event_ops { |