Re-implement prepare() methods to synchronise subsequent calls with the first
Submitted by Philip Withnall
Assigned to fol..@..e.bugs
With http://git.gnome.org/browse/folks/commit/?id=ce55fa2bf2f5f8cf95532da585d835bafeeb3347 I worked out a way to get subsequent concurrent calls to an asynchronous method to synchronise with the first call, rather than just returning immediately. We should re-implement the prepare() methods in folks to use _prepare_waiters arrays instead of _prepare_pending booleans. Bonus points for managing to abstract out the code in tpf-logger.vala to make implementation simpler.
This would be a behaviour change for prepare() (subsequent calls which are concurrent with the first call to prepare() would no longer return immediately; they would now return at the same time as the first call to prepare() returns; i.e. once the object has actually been prepared).
Version: git master