GnomeVFSContext

GnomeVFSContext — contexts allows modules to track thread usage and cancellation properly

Synopsis




GnomeVFSContext* gnome_vfs_context_new      (void);
void        gnome_vfs_context_free          (GnomeVFSContext *ctx);
GnomeVFSCancellation* gnome_vfs_context_get_cancellation
                                            (const GnomeVFSContext *ctx);
#define     gnome_vfs_context_check_cancellation(x)
const GnomeVFSContext* gnome_vfs_context_peek_current
                                            (void);
gboolean    gnome_vfs_context_check_cancellation_current
                                            (void);

Description

Details

gnome_vfs_context_new ()

GnomeVFSContext* gnome_vfs_context_new      (void);
Returns : a newly allocated GnomeVFSContext

gnome_vfs_context_free ()

void        gnome_vfs_context_free          (GnomeVFSContext *ctx);
ctx : context to be freed

gnome_vfs_context_get_cancellation ()

GnomeVFSCancellation* gnome_vfs_context_get_cancellation
                                            (const GnomeVFSContext *ctx);
ctx : context to get the GnomeVFSCancellation from
Returns : ctx 's GnomeVFSCancellation

gnome_vfs_context_check_cancellation()

#define     gnome_vfs_context_check_cancellation(x)
x :

gnome_vfs_context_peek_current ()

const GnomeVFSContext* gnome_vfs_context_peek_current
                                            (void);
Returns : the currently active GnomeVFSContext

gnome_vfs_context_check_cancellation_current ()

gboolean    gnome_vfs_context_check_cancellation_current
                                            (void);
Returns : TRUE if the currently active context has been cancelled, otherwise FALSE