mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
g_push/pop_current_cancellable -> g_cancellable_push/pop_current
2007-12-13 Alexander Larsson <alexl@redhat.com> * gcancellable.[ch]: * gio.symbols: * gbufferedinputstream.c: * gfileenumerator.c: * gfileinputstream.c: * gfileoutputstream.c: * ginputstream.c: * gioscheduler.c: * goutputstream.c: g_push/pop_current_cancellable -> g_cancellable_push/pop_current svn path=/trunk/; revision=6115
This commit is contained in:
committed by
Alexander Larsson
parent
f6b9b4f45e
commit
2ae689e31f
@@ -199,12 +199,12 @@ g_input_stream_read (GInputStream *stream,
|
||||
return -1;
|
||||
|
||||
if (cancellable)
|
||||
g_push_current_cancellable (cancellable);
|
||||
g_cancellable_push_current (cancellable);
|
||||
|
||||
res = class->read_fn (stream, buffer, count, cancellable, error);
|
||||
|
||||
if (cancellable)
|
||||
g_pop_current_cancellable (cancellable);
|
||||
g_cancellable_pop_current (cancellable);
|
||||
|
||||
g_input_stream_clear_pending (stream);
|
||||
|
||||
@@ -324,12 +324,12 @@ g_input_stream_skip (GInputStream *stream,
|
||||
return -1;
|
||||
|
||||
if (cancellable)
|
||||
g_push_current_cancellable (cancellable);
|
||||
g_cancellable_push_current (cancellable);
|
||||
|
||||
res = class->skip (stream, count, cancellable, error);
|
||||
|
||||
if (cancellable)
|
||||
g_pop_current_cancellable (cancellable);
|
||||
g_cancellable_pop_current (cancellable);
|
||||
|
||||
g_input_stream_clear_pending (stream);
|
||||
|
||||
@@ -445,13 +445,13 @@ g_input_stream_close (GInputStream *stream,
|
||||
return FALSE;
|
||||
|
||||
if (cancellable)
|
||||
g_push_current_cancellable (cancellable);
|
||||
g_cancellable_push_current (cancellable);
|
||||
|
||||
if (class->close_fn)
|
||||
res = class->close_fn (stream, cancellable, error);
|
||||
|
||||
if (cancellable)
|
||||
g_pop_current_cancellable (cancellable);
|
||||
g_cancellable_pop_current (cancellable);
|
||||
|
||||
g_input_stream_clear_pending (stream);
|
||||
|
||||
|
Reference in New Issue
Block a user