diff options
author | Xavier Hernandez <jahernan@redhat.com> | 2018-01-19 12:18:13 +0100 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-17 10:29:50 +0000 |
commit | 7cc20c1eb09c041b331c4add6c24212fbdcda3b4 (patch) | |
tree | b30bca618d817d3db7b3bab6eaec34eae5ce93c3 /libglusterfs/src/glusterfs | |
parent | 513df02b19af14b8b006c5c2e60c2a7447146aa2 (diff) | |
download | glusterfs-7cc20c1eb09c041b331c4add6c24212fbdcda3b4.tar.gz glusterfs-7cc20c1eb09c041b331c4add6c24212fbdcda3b4.tar.xz glusterfs-7cc20c1eb09c041b331c4add6c24212fbdcda3b4.zip |
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')
-rw-r--r-- | libglusterfs/src/glusterfs/timer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/glusterfs/timer.h b/libglusterfs/src/glusterfs/timer.h index 1af3303185..ae5b2edf45 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; |