Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c entropy_file.c 


Log Message:
* Make 'struct stat' a part of entropy_generic_file.  No point in discarding 
useful data
* More threading protection - fixed a nasty oversight where the file cache was 
accessed outside a mutex lock.  Could have potentially caused issues
* More migration to a static core

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- entropy_core.c      20 Nov 2005 03:04:28 -0000      1.21
+++ entropy_core.c      21 Nov 2005 10:49:21 -0000      1.22
@@ -957,6 +957,18 @@
        UNLOCK(&core->file_cache_mutex);
 }
 
+entropy_file_listener* entropy_core_file_cache_retrieve(char* md5) {
+       entropy_file_listener* listen;
+       
+       LOCK(&core_core->file_cache_mutex);
+
+       listen = ecore_hash_get(core_core->file_interest_list, md5);
+       
+       UNLOCK(&core_core->file_cache_mutex);
+
+       return listen;
+}
+
 entropy_gui_component_instance* entropy_core_global_layout_get(entropy_core* 
core) {
        return core->layout_global;
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_file.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- entropy_file.c      10 Nov 2005 12:14:05 -0000      1.6
+++ entropy_file.c      21 Nov 2005 10:49:21 -0000      1.7
@@ -6,6 +6,7 @@
        file->username = NULL;
        file->password = NULL;
        file->parent = NULL;
+       file->retrieved_stat = 0;
        bzero(file->mime_type, MIME_LENGTH);
 
        allocated_files++;




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to