summaryrefslogtreecommitdiff
path: root/src/lib/eio
Commit message (Collapse)AuthorAgeFilesLines
...
* Eo: Add a return value to eo_constructor().Tom Hacohen2015-05-201-3/+5
| | | | | | | | | | | From now on, constructors should return a value, usually the object being worked on, or NULL (if the constructor failed). This can also be used for implementing singletons, by just always returning the same object from the constructor. This is one of the final steps towards stabilizing Eo. @feature
* eolian: new syntax for params/values/keysDaniel Kolesa2015-05-181-3/+3
| | | | | | | | | | | Instead of "@in type name;" we now use "@in name: type;". This change is done because of consistency with the rest of Eolian; pretty much every other part of Eolian syntax uses the latter form. This is a big breaking change in the .eo format, so please update your .eo files accordingly and compile Elementary together with the EFL. @feature
* eio: fix grammar and spelling mistakes in Eio.h.Yomi2015-05-101-24/+24
| | | | | | | | | | | | Summary: Fix grammar and spelling mistakes in Eio.h Reviewers: cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D2472 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eio: remove the need to order the header correctly for Windows.Cedric BAIL2015-05-072-0/+32
|
* eio - fix crashes due to stale eio files in tracking listCarsten Haitzler (Rasterman)2015-04-205-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | so eio_eet didnt free fiels the same as the rest of eio. it thought it was special. it thought it could just go free() it's objects (even though they inherit the core Eio_File object type in their structs). everyone else ended up calling eio_file_free() EXCEPT eio_eet. so the eio_(long)_file_set() funcs ewnded up adding this eio file to the tracking list via eio_file_register() but never unregistered because they really liked to just do their own thing anyway... BAD CEDRIC! SPANKING TIME http://33.media.tumblr.com/3422c76c33c3b9b045f623ff73e0bf8d/tumblr_mhvu61N9br1rbavngo1_500.gi so this unifies all allocation to now use a single allocator (that also ensures all eio async io objects are zero'd out), and a SINGLE free path, and then it all works. no more valgrind complaints on e shutdown/restart whilst eio "things" were used before or ... maybe still around. this should fix T2129 so try again "git master" after this commit. @fix
* eio: reorder include to fix build on Windows.Cedric BAIL2015-04-181-3/+1
|
* eio: correct header inclusion for Windows.Cedric BAIL2015-04-141-1/+2
|
* eio-model: Fixed concurrent access to filter_cb and monitoring empty directoriesFelipe Magno de Almeida2015-04-102-12/+24
| | | | Added a spinlock, since contetion should be non-existant. And removed wrong if.
* eio_monitor: Removed unnecessary eio_file_direct_statFelipe Magno de Almeida2015-04-101-11/+3
| | | | | Removed unnecessary asynchronous stat, which could make eio_monitor to lose events between the monitor creation and stat completion.
* eio-model: Fix Eio model races in testsFelipe Magno de Almeida2015-04-091-8/+3
| | | | Removed sleep and implemented a deterministic way to test if the test has really finished.
* efl: move emodel to be an efl interfaces.Felipe Magno de Almeida2015-04-054-97/+97
|
* emodel: api change property_get/set and event modelchangeLarry Jr2015-04-053-109/+81
|
* eio: fix coding style of Eio_Model.Cedric BAIL2015-04-051-112/+119
|
* eio: use Eina_Log in Eio_Model.Cedric BAIL2015-04-051-9/+13
|
* emodel: API changes and removed unnecessary eina_values copy and stringsharesLarry Jr2015-04-052-133/+52
|
* eio: fix mismatch datatypes for internal data model properties.Guilherme Lepsch2015-04-051-2/+4
|
* emodel: Created Emodel and Eio_Model.Larry Jr2015-04-054-0/+930
|
* eio: don't restart a monitor on MacOSX when every paths have been removed.pierre lamot2015-03-171-10/+12
| | | | | | | | This patch check that when a monitor is removed the FSEvent service, it is not restarted if there is no more paths to monitor. This was generating an error message from FSEvent. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eio: add OSX implementation of eio_monitor based on FSEventpierre lamot2015-03-123-5/+410
| | | | | | | | | | | | | | | | | | | | | | | | | this patch adds an implementation of eio_monitor based on FSEvent for OSX. This implentation has some limitations compared to inotify implementation. Folowing events are not detected: - EIO_MONITOR_FILE_CLOSED - EIO_MONITOR_SELF_RENAME - EIO_MONITOR_SELF_DELETED It should be noted that some events that happend before the call to eio_monitor_add can be catched. This is why sleep timers have been added in the test suite. Tests have been added to check uncovered scenarios. some things might still be improved: - self_deleted events for files might be handled by checking the file_name manually - self_deleted events for directories might be handled by setting kFSEventStreamCreateFlagWatchRoot. I've noticed by doing so that a lot more unwanted event are raised Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eio: fix segmentation fault on eio_monitor for win32 apimichelle legrand2015-03-121-10/+24
| | | | | | @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eio: check that the file to be monitored is not an empty string.michelle legrand2015-02-111-0/+3
| | | | | | This fix segmentation faults on Windows caused by eio_monitor events. @fix
* eio: Win32 make GetOverlappedResult function non-blockingmichelle legrand2015-01-301-1/+1
| | | | | | @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eio: forcefully wait on shutdown for all thread to stop.Cedric BAIL2015-01-073-4/+43
| | | | | | This should avoid potential crash during shutdown while some Eio thread were still running. We are still not blocking for more than 30s, so if an IO is blocked on a dead device, you should be fine.
* inotify: Fix safety after read in 3 placesJean-Philippe Andre2014-10-281-1/+2
| | | | | | Fixes Coverity issues: - CID 1039565 - CID 1039566
* eio: add doc for returns of eio_file_{mkdir,move,copy}, eio_dir_{move,copy}.Adrien Nader2014-10-201-0/+4
|
* eio: documentation for return values.Philippe Caseiro2014-10-201-0/+10
| | | | | | | | - eio_file_copy - eio_file_move - eio_dir_copy - eio_dir_move - eio_dir_unlink
* eio: actually correctly set all field to NULL.Cedric BAIL2014-10-182-4/+4
| | | | @fix T1729
* Fix a bug with using Eio_File handler in main callback.Guillaume Friloux2014-10-092-4/+4
| | | | | | | | | | | When using eio_file_stat_ls() (or any other exposing Eio_File *handler), it will not be possible to use it from the main callback due to eio freeing data too fast from the thread. Moved frees from _eio_file_eina_ls_heavy() to eio_async_end() to be sure that all the calls to main callback are over. This implied adding the Eina_Iterator from eina_file_stat_ls to the _Eio_File_Ls structure.
* doc: fixed typo.Daniel Juyung Seo2014-08-181-10/+10
|
* eio - fix possible stringhare del bug in dir chmodCarsten Haitzler (Rasterman)2014-08-141-1/+2
| | | | | coverity picked this up - CID 1039645. it does indeed look like a real bug. if order->dirs is empty. for example.
* formatting fixCarsten Haitzler (Rasterman)2014-08-141-1/+1
|
* Win64: Fix a bunch of warningsJean-Philippe Andre2014-05-291-1/+1
| | | | | | | | | | Fix invalid casts. Use printf("%z") where appropriate. Fix unused variables warnings. Thanks vtorri for the patch. @fix
* Win32: Fix invalid free in eio monitorJean-Philippe Andre2014-05-211-18/+20
| | | | You can't just duplicate a string once and free it three times...
* do not use EINA_FALSE instead of NULLJérémy Zurcher2014-05-071-1/+1
|
* "whether" has 2x 'h'Mike Blumenkrantz2014-04-101-4/+4
|
* eio monitors no longer trigger a CRI error during freeMike Blumenkrantz2014-03-211-1/+2
| | | | @fix
* eio: let's not divide by 0.Cedric BAIL2014-03-201-1/+1
| | | | fix CID 1193208.
* eio: check if we need to wake up thread when the memory limit is changed.Cedric BAIL2014-03-071-0/+7
|
* eio: make it possible to limit the amount of memory used by threads.Cedric BAIL2014-03-052-9/+96
| | | | | | | | | | Eio does need to allocate memory from the thread, transmit it to the main loop where it is processed and later on freed. If the main loop is to slow to handle the stream of incoming data, a huge peak of memory can happen. Some people may want to limit the amount of memory used at peak time and so this new infrastructure make that possible. @feature
* eio: remove warning.Cedric BAIL2014-03-052-3/+2
|
* eio: let's report the path we didn't found.Cedric BAIL2014-03-051-1/+1
|
* eio: factorize code to have one place where data are pushed.Cedric BAIL2014-03-054-21/+20
|
* eio: improve log when monitoring files.Cedric BAIL2014-03-051-1/+29
|
* Eio monitor: Fix crash on invalid data accessJean-Philippe Andre2014-01-142-4/+20
| | | | | | | | | | | Fix race condition when touching/changing a (theme) file often. An Eio_Monitor was marked as "delete_me" but the rename callback was still called, leading to memory access to already freed objects. Test protocol was: ELM_THEME=~/default.edj elementary_test & watch touch ~/default.edj
* eio - protect against posible segv on rename with eioCarsten Haitzler (Rasterman)2014-01-071-1/+9
| | | | | | | | this MIGHT fix T45 but i can't reproduce to confirm, but reading a backtrace indicates this could have been the issue. it looks like there is room for a dangling pointer anyway, so fix. stable release - cherry-pick me!
* fix warning related to argument in generating doxygenJihoon Kim2014-01-071-7/+7
|
* fix 'found unknown command' warning in generating doxygenJihoon Kim2014-01-061-2/+2
|
* efl: Unified eina critical manro to CRI.Daniel Juyung Seo2013-12-261-4/+4
| | | | | | | | Being annoyed by different types of eina critical macros - CRI, CRIT, CRITICAL -, I concluded to unify them to one. Discussed on IRC and finally, CRI was chosen to meet the consistency with other macros - ERR, WRN, INF, DBG - in terms of the number of characters. If there is any missing bits, please let me know.
* alpha1 release autofoo/build tree work to pass distcheck and actually workv1.8.0-alpha1Carsten Haitzler (Rasterman)2013-11-041-2/+3
|
* eio: Check return code of fcntl()Stefan Schmidt2013-08-071-2/+4
| | | | CID 1039686