[SoupAddress] make _resolve_async idempotent, document/fix thread-safety
authorDan Winship <danw@gnome.org>
Sat, 7 Nov 2009 18:59:52 +0000 (13:59 -0500)
committerDan Winship <danw@gnome.org>
Sun, 15 Nov 2009 23:01:16 +0000 (18:01 -0500)
commit4a3bdacd4a5119150dc0eb317bcc287867574477
tree73c12330f745dfda151e8a0f397085e87944c489
parentadfa3159f5ca72bf47164073cfeb854f34dd1d50
[SoupAddress] make _resolve_async idempotent, document/fix thread-safety

Document that _resolve_async() can be called multiple times, but only
from the same async_context, and _resolve_sync() can be called
multiple times from different threads. Note that _get_name, etc, may
misbehave in the presence of multiple threads.

Change _resolve_async() so that multiple attempts to resolve the same
address will result in only a single GResolver call, and they will all
complete at the same time.

Part of https://bugzilla.gnome.org/show_bug.cgi?id=598948
libsoup/soup-address.c