![]() | ![]() | ![]() | GnomeVFS - Filesystem Abstraction library | ![]() |
---|
GnomeVFSContext — contexts allows modules to track thread usage and cancellation properly
GnomeVFSContext * gnome_vfs_context_new (void);void gnome_vfs_context_free (GnomeVFSContext *ctx);GnomeVFSCancellation * gnome_vfs_context_get_cancellation (constGnomeVFSContext *ctx); #define gnome_vfs_context_check_cancellation(x) constGnomeVFSContext * gnome_vfs_context_peek_current (void);gboolean gnome_vfs_context_check_cancellation_current (void);
GnomeVFSContext * gnome_vfs_context_new (void);
Creates a new context and cancellation object. Must be called from the main glib event loop.
Returns : | a newly allocated |
void gnome_vfs_context_free (GnomeVFSContext *ctx);
Free ctx and destroy the associated
ctx : | context to be freed |
GnomeVFSCancellation * gnome_vfs_context_get_cancellation (constGnomeVFSContext *ctx);
Retrieve the
ctx : | context to get the |
Returns : | ctx 's |
constGnomeVFSContext * gnome_vfs_context_peek_current (void);
Get the currently active context. It shouldn't be manipulated but can be compared to context's the module holds to determine whether they are active.
Returns : | the currently active |
<< gnome-vfs-ssl | gnome-vfs-socket >> |