mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-26 14:02:17 +01:00
GDBusConnection: delegate to the worker to close the stream
We can't safely close the output part of the I/O stream until any pending write or flush has been completed. In the worst case, this could lead to an assertion failure in the worker (when the close wins the race) or not closing the stream at all (when the write wins the race). Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268 Bug-NB: NB#271520 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
committed by
David Zeuthen
parent
7bbc7727d4
commit
c9282849b6
@@ -76,6 +76,11 @@ gboolean _g_dbus_worker_flush_sync (GDBusWorker *worker,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/* can be called from any thread */
|
||||
void _g_dbus_worker_close (GDBusWorker *worker,
|
||||
GCancellable *cancellable,
|
||||
GSimpleAsyncResult *result);
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
void _g_dbus_initialize (void);
|
||||
|
||||
Reference in New Issue
Block a user