Cedric BAIL
81b3cddb13
ecore: fix Ecore_Thread.
...
SVN revision: 67082
2012-01-11 13:45:34 +00:00
Daniel Juyung Seo
19de4626ab
ecore: applied eina_array_count_get -> eina_array_count api change.
...
SVN revision: 67022
2012-01-10 15:34:52 +00:00
Cedric BAIL
38567fbf32
ecore: include stdlib.h when required.
...
SVN revision: 65964
2011-12-06 16:09:05 +00:00
Cedric BAIL
61f1be3463
ecore: remove some warning.
...
SVN revision: 65445
2011-11-20 14:44:05 +00:00
Vincent Torri
9faf53f4e5
Ecore: warning: implicit declaration of functions 'getpid' and 'usleep' on OpenBSD
...
Patch by Fabien Romano from OpenBSD
SVN revision: 65211
2011-11-14 22:29:46 +00:00
Carsten Haitzler
58cbf16625
ran ecrustify on ecore. some manual fixing too.
...
SVN revision: 64238
2011-10-21 05:40:39 +00:00
Youness Alaoui
b2392e422c
Ecore: _ecore_thread_handler must not be defined if threads aren't supported
...
SVN revision: 63251
2011-09-07 06:58:10 +00:00
Mike McCormack
bfffcce2fe
ecore: Create a lockless ecore_event_handler_del
...
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 62375
2011-08-12 05:22:16 +00:00
Mike McCormack
a541e19c16
ecore: Use eina locks for _ecore_lock()
...
Always count lock calls too.
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 62372
2011-08-12 05:21:49 +00:00
Mike McCormack
5c8256e337
ecore: Add main loop thread safety
...
Thread safety is disabled by default.
Enable it with --enable-thread-safety
Should cover timers, events, animators, idlers and fd handlers.
Tested with Enlightenment and elementary_test.
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 61851
2011-07-28 12:01:16 +00:00
Iván Briano
4da2c481b5
Fix some double frees. The hash frees the data itself.
...
SVN revision: 61292
2011-07-12 13:36:19 +00:00
Iván Briano
a5b1673a70
Little errors no one cares about, but make thread-less case work as expected
...
SVN revision: 61129
2011-07-07 18:39:25 +00:00
Mike McCormack
18193e9918
ecore: Fix thread check for quicklaunch
...
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 61109
2011-07-07 10:11:13 +00:00
Iván Briano
693af50513
Expand Ecore_Thread docs.
...
Thanks cedric for technical advice.
Thanks discomfitor for helping when English vanished.
Thanks myself for keeping both of them busy so they don't break SVN *too* much.
SVN revision: 61095
2011-07-06 18:08:21 +00:00
Mike McCormack
f7ec79e13e
ecore: Add function to check we're the main loop thread
...
Rearrange the the order of startup to avoid triggering
the thread checks in ecore_event_type_new().
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
SVN revision: 61040
2011-07-05 11:13:20 +00:00
Cedric BAIL
94718fa484
ecore: forgotten eina_threads_init/shutdown.
...
SVN revision: 60801
2011-06-29 08:24:13 +00:00
Iván Briano
0365a18df7
It doesn't look like this matters, so let's fix the build.
...
And if it does matter, I hope it breaks something from cedric. One femur, for example. Or both.
SVN revision: 60789
2011-06-29 02:32:37 +00:00
Cedric BAIL
5d473313b0
ecore: do count threads only in the main loop.
...
NOTE: for an unknow reason I always get the wrong number
of threads when doing the computation from the thread.
Even if I use volatile and mutex. So to avoid that move
that stuff in the main loop. It increase the complexity
of the code, but at least it work.
SVN revision: 60767
2011-06-28 15:53:19 +00:00
Cedric BAIL
edfeab7295
ecore: actually limit the number of pipe in the cache.
...
SVN revision: 60763
2011-06-28 14:53:34 +00:00
Vincent Torri
d9e7ffbf87
Ecore: ecore_thread : free resources, spotted by Ulrich Eckhardt
...
SVN revision: 60057
2011-06-07 22:21:25 +00:00
Christopher Michael
61ec1408bd
Ecore: Fix shadow declaration of variable 'time'.
...
SVN revision: 59720
2011-05-27 02:06:26 +00:00
Vincent Torri
223bcd6866
Ecore : ecore_thread: use Sleep() on Windows, instead of usleep()
...
usleep() does not exists on Windows. Use Sleep() instead. But the
resolution timers are not good on Windows. the sleep will be around
50ms at best.
SVN revision: 59466
2011-05-17 07:17:53 +00:00
Daniel Juyung Seo
6ef3841a37
Ecore: Removed trailing whitespaces.
...
SVN revision: 58753
2011-04-20 14:15:33 +00:00
Cedric BAIL
ab3150b53e
ecore: add ecore_thread_reschedule.
...
SVN revision: 57797
2011-03-16 13:16:14 +00:00
Christopher Michael
c0096e92ad
Ecore_Thread: Fix yet another doxy typo.
...
SVN revision: 57326
2011-02-25 18:42:44 +00:00
Christopher Michael
4ba275a120
Ecore_Thread: Fix doxy typo.
...
SVN revision: 57325
2011-02-25 18:41:37 +00:00
Vincent Torri
a3ffd27636
remove win7 code and fix other minor problems
...
SVN revision: 55023
2010-11-26 18:41:43 +00:00
Vincent Torri
95f36c0e18
more fixes, but needs to remove Windows 7 code, now...
...
SVN revision: 55019
2010-11-26 15:34:30 +00:00
Vincent Torri
6b4b7bc42d
add native win32 thread support in ecore_thread. Not tested a lot at all.
...
SVN revision: 55014
2010-11-26 13:50:31 +00:00
Cedric BAIL
90b57c2ed0
* ecore: improve speed by reusing pipe and allocated structure.
...
SVN revision: 54896
2010-11-23 18:32:17 +00:00
Cedric BAIL
6f5333d336
* ecore: small cleanup.
...
SVN revision: 54893
2010-11-23 16:52:18 +00:00
Cedric BAIL
c381181854
* ecore: revert comment.
...
This code is here to prevent the premature death of thread when
apps killall of them, before recreating them again. This avoid
call to pthread_create and increase throughput. The only information
that I couldn't determine pragmatically is the timing. So that's
the time the main loop has to create another Ecore_Thread, before
needing to call pthread_create again.
SVN revision: 54633
2010-11-17 16:26:08 +00:00
Carsten Haitzler
a27ab1e696
see comment.
...
SVN revision: 54549
2010-11-14 09:00:24 +00:00
Cedric BAIL
e61f8560ea
* ecore: break Ecore_Thread API once and for all to make it consistent.
...
SVN revision: 54502
2010-11-12 13:28:19 +00:00
Cedric BAIL
ea2cfb0d31
* ecore: always check for func_cancel being not NULL before using it.
...
Reported by Hugo Camboulive <hugo.camboulive@gmail.com>.
SVN revision: 53851
2010-10-25 09:39:00 +00:00
Vincent Torri
640dc89d1b
[ecore] fix compilation when pthread is not available
...
SVN revision: 53777
2010-10-22 17:39:25 +00:00
Vincent Torri
a17c58d0b0
improve doc layout
...
SVN revision: 53509
2010-10-17 07:03:28 +00:00
Cedric BAIL
94fb47d168
* ecore: improve and fix ecore_thread destruction.
...
SVN revision: 53411
2010-10-14 16:45:48 +00:00
Cedric BAIL
25e84c7f3d
* ecore: fix possible race. It also make ecore_thread_run
...
match ecore_thread_feedback_run better.
NOTE: I know it breaks API/ABI compatibility for that call,
but that's the only sane solution I could found.
SVN revision: 53370
2010-10-13 17:45:07 +00:00
Cedric BAIL
00c7021fcb
* ecore: turn on and off eina threads support when needed.
...
SVN revision: 53364
2010-10-13 16:44:15 +00:00
Eduardo de Barros Lima
2f1827d132
Ecore: No need to #define _GNU_SOURCE
...
SVN revision: 53162
2010-10-07 20:40:33 +00:00
Cedric BAIL
6b5c401b1f
* ecore: fix typo.
...
SVN revision: 53098
2010-10-06 13:01:35 +00:00
Cedric BAIL
d617b8574d
* ecore: refcount send and received notify to prevent leak on
...
ecore_thread_cancel.
SVN revision: 53096
2010-10-06 11:48:45 +00:00
Cedric BAIL
05262d2120
* ecore: remove thread from the correct list.
...
SVN revision: 53029
2010-10-04 15:24:34 +00:00
Vincent Torri
16263f52cc
tab--
...
SVN revision: 52918
2010-09-30 06:09:20 +00:00
Lucas De Marchi
85599b20eb
Use eina_sched_prio_drop()
...
SVN revision: 52652
2010-09-23 20:39:40 +00:00
Cedric BAIL
b462783cae
* ecore: oops, forgot that change.
...
SVN revision: 52580
2010-09-22 11:09:44 +00:00
Cedric BAIL
8036a32918
* ecore: rename ecore_long_run to ecore_thread_feedback_run.
...
SVN revision: 52573
2010-09-22 09:47:55 +00:00
Mike Blumenkrantz
f3a2858f37
remove unused variable
...
SVN revision: 52529
2010-09-21 02:16:40 +00:00
Mike Blumenkrantz
130f5bec81
doxy error fixes
...
SVN revision: 52512
2010-09-20 20:33:50 +00:00