Commit Graph

1195 Commits

Author SHA1 Message Date
Cedric BAIL cde3148eca eina: add eina_inlist_sorted_insert.
SVN revision: 59654
2011-05-24 15:17:56 +00:00
Vincent Torri 9f2ac8d7e3 Eina: Implement eina_sched_prio_drop() on Windows
SVN revision: 59637
2011-05-24 06:29:58 +00:00
Vincent Torri 008e1a56ac I like alphabetical order :)
SVN revision: 59516
2011-05-18 19:11:09 +00:00
Vincent Torri 31f60da46e debug--
SVN revision: 59505
2011-05-18 13:17:54 +00:00
Vincent Torri 4a16749112 Eina_lock : fix Windows code, thanks to cedric
SVN revision: 59504
2011-05-18 13:15:25 +00:00
Cedric BAIL c132a4ac50 eina: fix typo.
SVN revision: 59503
2011-05-18 12:56:49 +00:00
Tom Hacohen 4ea3aa489f Eina binbuf: Fix compilation and correct the mistakes.
SVN revision: 59500
2011-05-18 11:45:32 +00:00
Tom Hacohen 594d94782b Eina binbuf: Struct name should be binbuf, not strbuf.
SVN revision: 59497
2011-05-18 10:52:50 +00:00
Cedric BAIL fe7ae5930a eina: part of the init is specific, so preserve it.
SVN revision: 59493
2011-05-18 10:05:59 +00:00
Cedric BAIL 42e460e3b6 eina: fix eina_share_common_init.
SVN revision: 59485
2011-05-18 07:56:11 +00:00
Sangho Park 7cbc531e4c Eina: add 'eina_init()' at the testcase of simple_xml_parser.
SVN revision: 59479
2011-05-18 02:49:59 +00:00
Sangho Park 725b056fab Eina: add testcase for 'eina_simple_xml_parser'
SVN revision: 59478
2011-05-18 02:29:59 +00:00
Cedric BAIL c9a4fc3054 eina: fix eina_file to be really usable.
SVN revision: 59470
2011-05-17 16:17:28 +00:00
Tom Hacohen 8ca233f8cb Eina binbuf: Added eina_binbuff an auto resizing binary buffer.
SVN revision: 59468
2011-05-17 15:45:39 +00:00
Cedric BAIL 44798b830c eina: build without threads support.
SVN revision: 59467
2011-05-17 10:15:19 +00:00
Vincent Torri 43397834ac Eina_ : eina_file_win32.c : fix returned value of eina_file_shutdown()
SVN revision: 59463
2011-05-17 05:38:29 +00:00
Vincent Torri 495c88aac8 fix eina_prefix.c on Windows (at least a part of it, as elm is not working with it)
SVN revision: 59454
2011-05-16 17:39:20 +00:00
Vincent Torri eebeebb147 fix eina_inline_lock_void.x
SVN revision: 59453
2011-05-16 17:37:51 +00:00
Vincent Torri d809170ea9 Eina: eina_lock: fix eina_lock on Windows
SVN revision: 59395
2011-05-15 10:55:07 +00:00
Vincent Torri 65892e65b7 Eina : eina_lock : make it compile on Windows
SVN revision: 59391
2011-05-14 21:19:36 +00:00
Boris Faure 021819f4f9 eina: improve hash documentation on free_cb
SVN revision: 59383
2011-05-14 14:39:25 +00:00
Cedric BAIL 31e53c82bf eina: always put map in memory when requested and use HUGETLB when available.
SVN revision: 59366
2011-05-13 10:44:29 +00:00
Cedric BAIL 0351269adc eina: check condition is still alive when debugging threads.
SVN revision: 59299
2011-05-09 14:41:39 +00:00
Cedric BAIL 9e20be0766 eina: have same behaviour on windows and linux.
SVN revision: 59297
2011-05-09 13:12:36 +00:00
Cedric BAIL 5f820ce976 eina: oops, need to protect inside #ifdef.
SVN revision: 59295
2011-05-09 13:06:03 +00:00
Cedric BAIL c73f0f9cf5 eina: improve lock debugging.
SVN revision: 59293
2011-05-09 12:54:47 +00:00
Cedric BAIL d2b65a51d0 eina: more check.
SVN revision: 59289
2011-05-09 10:42:42 +00:00
Cedric BAIL d20144bc9f eina: add Eina_Condition.
SVN revision: 59287
2011-05-09 10:32:56 +00:00
Cedric BAIL 83c3a1a0fb eina: check pending lock at the right time.
SVN revision: 59286
2011-05-09 10:29:55 +00:00
Cedric BAIL 8820713691 eina: remove flood of debugging information.
SVN revision: 59234
2011-05-06 09:16:40 +00:00
Cedric BAIL b4f8d80b02 eina: remove useless lock.
SVN revision: 59233
2011-05-06 09:07:26 +00:00
Cedric BAIL 25550183e0 eina: improve on/off and debugging lock.
Now if a lock is still taken when shutdown occur, you will know
where it come from !


SVN revision: 59191
2011-05-04 13:53:22 +00:00
Tom Hacohen 4a11dacf16 Eina lock: unused warning suppression is done with (void).
Not only that it's uglier doing mutex=0, but also new gcc started
complainig about it.

SVN revision: 59137
2011-05-02 18:19:41 +00:00
Cedric BAIL fdc092efe1 eina: forgotten commit.
SVN revision: 59125
2011-05-02 13:52:34 +00:00
Cedric BAIL 5c2d05374c eina: use the right naming.
SVN revision: 59124
2011-05-02 13:51:20 +00:00
Cedric BAIL 691da73b84 eina: add back threads on/off support.
NOTE: only use it if you know what you are doing !


SVN revision: 59123
2011-05-02 13:40:28 +00:00
Cedric BAIL e5402b2eb2 eina: forgotten initialization.
SVN revision: 59121
2011-05-02 13:09:38 +00:00
Cedric BAIL 9140383045 eina: improve thread debugging and portability.
All thread debugging facility, including lock debug, on by turning --enable-debug-threads
at configure time of eina.

When threads check are disable, make sure that all lock/release are called
from the main loop only. And in all case, eina_lock_new/eina_lock_delete should be
called from the main loop.

Remove static initialization as it is not portable under Windows.



SVN revision: 59118
2011-05-02 11:25:35 +00:00
Cedric BAIL a345a670b2 eina: make sure eina_threads_init/eina_threads_shutdown are correctly called.
SVN revision: 59117
2011-05-02 11:20:00 +00:00
Carsten Haitzler 5061598e12 also return deadlock from normal lock (not try only)
SVN revision: 59103
2011-05-02 08:34:22 +00:00
Carsten Haitzler 651cff4602 formalise eina lock results to be equivalent to true/false with added
deadlock for try.



SVN revision: 59101
2011-05-02 08:24:06 +00:00
Vincent Torri 65e50307a0 time.h should be sufficient
SVN revision: 59096
2011-05-02 07:04:24 +00:00
Vincent Torri 604c4b993a Eina: eina_file.h: fix compilation on Mac Os X
define time_t on Mac OS X. Patch by Dave Ray.


SVN revision: 59095
2011-05-02 05:52:31 +00:00
Carsten Haitzler 234f0a4659 oh dear. this new eina_lock thing is a bit of a mess isn't it now?
some fundamental errors there. don't go replacing pthread locks with
wrappers unless you know full well what u are doing. havnig threads
only work while "threads are initted" and then init/shtudown the thread
thing every time u spawn a thread.. is pretty silly. what if a thread
ends in the background WHILE u have a lock.. u try unlock.. u know
what ? your unlock DOES nothing. so you retain a lock. next time u
want to lock once a thread is around.. u have a deadlock issue.

even better - the checking if threads are initted and up is not
locked, so it can come up while it is being checked. more race
conditions. u need to clokc the init/shutdown AND lock the checking of
the value... and even then u STILl have problem #1 above. so that code
is now gone.

also trylock trturn inverse logic to the original pthread func and the
macros in evas that used it were not changed accordingly! aaagh!

i've also added backtrace debug ability to eina threads if compiled in
- u can get a bt of who last locked something. i had to do this just to
begin to grasp what on earth was going on. it's off by default.
also... the locks are error check locks to trylock can detect
deadlocks. speacil "2" return for now. better than a poke in the eye
with a sharp stick until we decide what to do. for now i hopew i have
killed this thread lock bug.




SVN revision: 59085
2011-05-01 13:24:08 +00:00
Boris Faure a96931a66b eina: fix #elif usage
SVN revision: 59044
2011-04-29 19:08:03 +00:00
Boris Faure 64f1cee555 eina: remove redundant declaration
SVN revision: 59043
2011-04-29 19:07:46 +00:00
Tom Hacohen 00c53f261b Eina refcount: Wrap EINA_REFCOUNT_UNREF with do {} while(0).
SVN revision: 59042
2011-04-29 18:54:29 +00:00
Cedric BAIL f97a64ca03 eina: Add refcounting macro helper.
SVN revision: 59038
2011-04-29 16:09:07 +00:00
Vincent Torri 0e6b42e9b1 Eina: eina_object : more use of eina_lock
SVN revision: 58980
2011-04-27 19:44:57 +00:00
Vincent Torri a288cd7af1 Eina: Fix static build of the buddy mempool
SVN revision: 58974
2011-04-27 17:00:36 +00:00