Top |
GnomeVFSContextGnomeVFSContext — contexts allows modules to track thread usage and cancellation properly |
GnomeVFSContext *
gnome_vfs_context_new (void
);
Creates a new context and cancellation object. Must be called from the main glib event loop.
void
gnome_vfs_context_free (GnomeVFSContext *ctx
);
Free ctx
and destroy the associated GnomeVFSCancellation.
GnomeVFSCancellation *
gnome_vfs_context_get_cancellation (const GnomeVFSContext *ctx
);
Retrieve the GnomeVFSCancellation associated with ctx
.
const GnomeVFSContext *
gnome_vfs_context_peek_current (void
);
Get the currently active context. It shouldn't be manipulated but can be compared to contexts module holds to determine whether they are active.