GBusNameOwnerFlags: Add DO_NOT_QUEUE flag
commitc53b44edb28b7aec62349a11a8263c488b35b70e
authorSimon McVittie <smcv@collabora.com>
Mon, 19 Jun 2017 11:41:53 +0000 (19 12:41 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 16:16:07 +0000 (7 17:16 +0100)
treecd0aa484c5af53d50c6bd04ba47a18ba4e60b567
parent92f1ba200d48bceec10a9be8f0262c57f7375d02
GBusNameOwnerFlags: Add DO_NOT_QUEUE flag

PulseAudio and LibreOffice are among the services that use this flag.
Refusing to queue for a name lets you do this transaction,
but atomically, avoiding the transient state where you briefly join
the queue and then are given the name when its primary owner drops it:

    result = RequestName(name)

    if result == IN_QUEUE:
        ReleaseName(name)
        result = EXISTS

    return result

(Modified by Philip Withnall to add documentation.)

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=784392
gio/gioenums.h