Poster of Linux kernelThe best gift for a Linux geek
globus_callback.h

globus_callback.h

Section: globus common (3) Updated: 12 Jun 2009
Local index Up
 

NAME

globus_callback.h - Globus Callback API.

 

SYNOPSIS


 

Defines


#define GLOBUS_CALLBACK_GLOBAL_SPACE

#define GLOBUS_SIGNAL_INTERRUPT

Convenience Macros


#define globus_callback_poll(a)

#define globus_poll_blocking()

#define globus_poll_nonblocking()

#define globus_poll()

#define globus_signal_poll()

#define globus_callback_register_oneshot(callback_handle,delay_time,callback_func,callback_user_arg)

#define globus_callback_register_periodic(callback_handle,delay_time,period,callback_func,callback_user_arg)

#define globus_callback_register_signal_handler(signum,persist,callback_func,callback_user_arg)
 

Typedefs

Callback Prototypes


typedef void(* globus_callback_func_t )(void *user_arg)
 

Enumerations


enum globus_callback_space_behavior_t { GLOBUS_CALLBACK_SPACE_BEHAVIOR_SINGLE, GLOBUS_CALLBACK_SPACE_BEHAVIOR_SERIALIZED, GLOBUS_CALLBACK_SPACE_BEHAVIOR_THREADED }
 

Functions


globus_result_t globus_callback_space_init (globus_callback_space_t *space, globus_callback_space_attr_t attr)

globus_result_t globus_callback_space_reference (globus_callback_space_t space)

globus_result_t globus_callback_space_destroy (globus_callback_space_t space)

globus_result_t globus_callback_space_attr_init (globus_callback_space_attr_t *attr)

globus_result_t globus_callback_space_attr_destroy (globus_callback_space_attr_t attr)

globus_result_t globus_callback_space_attr_set_behavior (globus_callback_space_attr_t attr, globus_callback_space_behavior_t behavior)

globus_result_t globus_callback_space_attr_get_behavior (globus_callback_space_attr_t attr, globus_callback_space_behavior_t *behavior)

globus_result_t globus_callback_space_get (globus_callback_space_t *space)

int globus_callback_space_get_depth (globus_callback_space_t space)

globus_bool_t globus_callback_space_is_single (globus_callback_space_t space)

globus_result_t globus_callback_space_register_signal_handler (int signum, globus_bool_t persist, globus_callback_func_t callback_func, void *callback_user_arg, globus_callback_space_t space)

globus_result_t globus_callback_unregister_signal_handler (int signum, globus_callback_func_t unregister_callback, void *unreg_arg)

void globus_callback_add_wakeup_handler (void(*wakeup)(void *), void *user_arg)

Oneshot Callbacks


globus_result_t globus_callback_space_register_oneshot (globus_callback_handle_t *callback_handle, const globus_reltime_t *delay_time, globus_callback_func_t callback_func, void *callback_user_arg, globus_callback_space_t space)

Periodic Callbacks


globus_result_t globus_callback_space_register_periodic (globus_callback_handle_t *callback_handle, const globus_reltime_t *delay_time, const globus_reltime_t *period, globus_callback_func_t callback_func, void *callback_user_arg, globus_callback_space_t space)

globus_result_t globus_callback_unregister (globus_callback_handle_t callback_handle, globus_callback_func_t unregister_callback, void *unreg_arg, globus_bool_t *active)

globus_result_t globus_callback_adjust_oneshot (globus_callback_handle_t callback_handle, const globus_reltime_t *new_delay)

globus_result_t globus_callback_adjust_period (globus_callback_handle_t callback_handle, const globus_reltime_t *new_period)

Callback Polling


void globus_callback_space_poll (const globus_abstime_t *timestop, globus_callback_space_t space)

void globus_callback_signal_poll ()

Miscellaneous


globus_bool_t globus_callback_get_timeout (globus_reltime_t *time_left)

globus_bool_t globus_callback_has_time_expired ()

globus_bool_t globus_callback_was_restarted ()
 

Module Specific


#define GLOBUS_CALLBACK_MODULE

#define GLOBUS_POLL_MODULE

enum globus_callback_error_type_t { GLOBUS_CALLBACK_ERROR_INVALID_CALLBACK_HANDLE = 1024, GLOBUS_CALLBACK_ERROR_INVALID_SPACE, GLOBUS_CALLBACK_ERROR_MEMORY_ALLOC, GLOBUS_CALLBACK_ERROR_INVALID_ARGUMENT, GLOBUS_CALLBACK_ERROR_ALREADY_CANCELED, GLOBUS_CALLBACK_ERROR_NO_ACTIVE_CALLBACK }

typedef int globus_callback_handle_t

typedef int globus_callback_space_t

typedef struct globus_l_callback_space_attr_s * globus_callback_space_attr_t
 

Detailed Description

Globus Callback API.

Source

/home/globdev/CVS/globus-packages/common/source/library/globus_callback.h,v

Date

2006/01/19 05:54:13

Revision

1.12

Author

mlink

 

Author

Generated automatically by Doxygen for globus common from the source code.


 

Index

NAME
SYNOPSIS
Defines
Typedefs
Enumerations
Functions
Module Specific
Detailed Description
Author

This document was created by man2html, using the manual pages.
Time: 22:37:23 GMT, April 16, 2011