From 7cc20c1eb09c041b331c4add6c24212fbdcda3b4 Mon Sep 17 00:00:00 2001 From: Xavier Hernandez Date: Fri, 19 Jan 2018 12:18:13 +0100 Subject: core: improve timer accuracy Also fixed some issues on test ec-1468261.t. Change-Id: If156f86af986d9eed13cdd1f15c5a7214cd11706 Updates: bz#1193929 Signed-off-by: Xavier Hernandez --- libglusterfs/src/glusterfs/timer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src/glusterfs/timer.h') 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; -- cgit