Hi,

what are the preferred types of locks to use in GtkG? I've seen that
glib's static mutex locks (GStaticMutex) are used in some
places.

Should I use this type of lock to prevent concurrent updates that
might lead to strange results in the HSEP code (e.g. invariant
violation)? Finer-grained locks like read/write locks would be ideal
there, but the locking time is extremely short anyway, so one global
static mutex lock should do the job.


Greetings,
Thomas.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to