summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-02-24 14:13:13 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-02-24 14:13:11 -0500
commit83f38d2b2c66d753f24f1c7af76870ff88e5aff6 (patch)
tree16fd4ae14340289b02ceb6f3c13016d30a6d9e03 /src/lib
parent67d193b92cf950cc5b1804e7f1250a33adfb660b (diff)
ecore: do not access 'timer_thread' global from animator thread
@fix
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore_anim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 8fb738649a..5ce277523e 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -94,7 +94,7 @@ _tick_send(signed char val)
94} 94}
95 95
96static void 96static void
97_timer_send_time(double t) 97_timer_send_time(double t, Ecore_Thread *thread)
98{ 98{
99 double *tim = malloc(sizeof(*tim)); 99 double *tim = malloc(sizeof(*tim));
100 if (tim) 100 if (tim)
@@ -104,7 +104,7 @@ _timer_send_time(double t)
104 eina_spinlock_take(&tick_queue_lock); 104 eina_spinlock_take(&tick_queue_lock);
105 tick_queue_count++; 105 tick_queue_count++;
106 eina_spinlock_release(&tick_queue_lock); 106 eina_spinlock_release(&tick_queue_lock);
107 ecore_thread_feedback(timer_thread, tim); 107 ecore_thread_feedback(thread, tim);
108 } 108 }
109} 109}
110 110
@@ -246,7 +246,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
246 } 246 }
247 else if (data_timeout) 247 else if (data_timeout)
248 { 248 {
249 if (tick) _timer_send_time(t0 - d + ft); 249 if (tick) _timer_send_time(t0 - d + ft, thread);
250 } 250 }
251 } 251 }
252 } 252 }
@@ -295,7 +295,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
295 } 295 }
296 else if (data_timeout) 296 else if (data_timeout)
297 { 297 {
298 if (tick) _timer_send_time(t0 - d + ft); 298 if (tick) _timer_send_time(t0 - d + ft, thread);
299 } 299 }
300 } 300 }
301 } 301 }