gnet r456 - in trunk: . src tests/check/gnet



Author: tpm
Date: 2007-10-24 15:54:49 +0100 (Wed, 24 Oct 2007)
New Revision: 456
ViewCVS link: http://svn.gnome.org/viewcvs/gnet?rev=456&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/inetaddr.c
   trunk/tests/check/gnet/gnetinetaddr.c
Log:
	* src/inetaddr.c (gnet_inetaddr_get_name_async),
	  (gnet_inetaddr_get_name_async_cancel),
	  (inetaddr_get_name_async_gthread_dispatch),
	  (inetaddr_get_name_async_gthread):
	  Don't take lock in reverse lookup thread while it's doing the
	  blocking reverse lookup, otherwise a _cancel() from the main thread
	  will block until the blocking operation in the thread has finished,
	  which isn't what we want; fix a small leak when cancelling a lookup;
	  no need to take the lock before starting the lookup thread, just set
	  up the structure before starting the thread (no point optimising for
	  an unlikely failure case).
	* tests/check/gnet/gnetinetaddr.c: (gnetinetaddr_suite):
	  Add dumb unit test for reverse lookup cancellation.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]