summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/glusterfs/timer.h
diff options
context:
space:
mode:
authorXavier Hernandez <jahernan@redhat.com>2018-01-19 12:18:13 +0100
committerAmar Tumballi <amarts@redhat.com>2019-06-17 10:29:50 +0000
commit7cc20c1eb09c041b331c4add6c24212fbdcda3b4 (patch)
treeb30bca618d817d3db7b3bab6eaec34eae5ce93c3 /libglusterfs/src/glusterfs/timer.h
parent513df02b19af14b8b006c5c2e60c2a7447146aa2 (diff)
core: improve timer accuracy
Also fixed some issues on test ec-1468261.t. Change-Id: If156f86af986d9eed13cdd1f15c5a7214cd11706 Updates: bz#1193929 Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
Diffstat (limited to 'libglusterfs/src/glusterfs/timer.h')
-rw-r--r--libglusterfs/src/glusterfs/timer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/glusterfs/timer.h b/libglusterfs/src/glusterfs/timer.h
index 1af33031851..ae5b2edf451 100644
--- a/libglusterfs/src/glusterfs/timer.h
+++ b/libglusterfs/src/glusterfs/timer.h
@@ -34,10 +34,11 @@ struct _gf_timer {
};
struct _gf_timer_registry {
+ struct list_head active;
+ pthread_mutex_t lock;
+ pthread_cond_t cond;
pthread_t th;
char fin;
- struct list_head active;
- gf_lock_t lock;
};
typedef struct _gf_timer gf_timer_t;