documentation: Document which yielding methods are safe to call concurrently
authorPhilip Withnall <philip@tecnocode.co.uk>
Sun, 30 Dec 2012 00:48:38 +0000 (00:48 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sun, 30 Dec 2012 00:51:07 +0000 (00:51 +0000)
commite21932e8d233f68e0b065882eb06b15089a2935a
tree65ea3e09c149defcf9794ce4f6f63631eeb17fd2
parentbf25b9b6031d65569eb87836325793637b1ddec1
documentation: Document which yielding methods are safe to call concurrently

This is a follow-up commit to ce55fa2bf2f5f8cf95532da585d835bafeeb3347.
I went through all methods in folks which yield to another async method,
and tried to work out whether the caller was safe to run multiple times
concurrently (e.g. begin a second asynchronous call to it between a previous
async call beginning and finishing).

I’ve marked all such methods as safe (or not safe) as appropriate. I
haven’t made any attempt to make the unsafe methods safe, except in one
case in backend-store.vala.
backends/eds/lib/edsf-persona-store.vala
backends/key-file/kf-persona-store.vala
backends/libsocialweb/lib/swf-persona-store.vala
backends/telepathy/lib/tpf-persona-store.vala
backends/tracker/lib/trf-persona-store.vala
folks/anti-linkable.vala
folks/avatar-cache.vala
folks/backend-store.vala
folks/individual-aggregator.vala
folks/object-cache.vala