Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/karma/lib/w.html
Дата изменения: Unknown Дата индексирования: Mon Dec 24 13:25:59 2007 Кодировка: Поисковые слова: holographic principle |
Library: karma
Link With: -lkarma
w_test_supported | Test if application supports work functions. |
w_register_support | Register support for work functions. |
w_unregister_support | Unregister support for work functions. |
w_register_notify_func | Register new work function callback. |
w_work_to_be_done | Test for pending work functions waiting to be called. |
w_do_work | Do some work. |
w_register_func | Register a work function. |
w_unregister_func | Unregister a work function. |
w_PROTO_new_func | New work function callback. |
w_PROTO_work_func | Work function. |
w_PRIORITIES | List work function priorities |
This routine will determine if work functions have been supported by the application.
Parameters:
This routine will inform the package that the application will
support work functions. This routine may only be called once unless an
intervening call to Parameters: This routine will inform the package that the application no
longer supports work functions. This routine may only be called once unless
an intervening call to Parameters: This routine will register a routine which is called whenever a
new work function is registered.
Parameters: This routine will determine if there are any pending work
functions waiting to be called.
Parameters: This routine will call any pending work functions. The work
function at the top of the list is called once only.
Parameters: This routine will register a work function. The work function at
the top of the list is the one that is always called. Only when the work
function at the top of the list is unregistered will the next work function
be called.
Parameters: This routine will unregister a work function. The second function
in the list will moved to the top of the list. A work function cannot
unregister itself in this manner.
Parameters: This routine is called whenever a new work function is
registered.
Parameters: This routine is called to perform some work.
Parameters:
This function takes no parameters
Returns: Nothing.
Multithreading Level: Unsafe
EXPERIMENTAL FUNCTION: subject to change without notice
void
w_unregister_support ()
This function takes no parameters
Returns: Nothing.
Multithreading Level: Unsafe
void
w_register_notify_func (void (*func) (void *info), void *info)
Returns: A KCallbackFunc object. On failure, the process aborts.
Multithreading Level: Unsafe
flag
w_work_to_be_done ()
This function takes no parameters
Returns: TRUE if any work functions are pending, else FALSE.
Multithreading Level: Unsafe
Note:
flag
w_do_work ()
This function takes no parameters
Returns: TRUE if more work is left to be done, else FALSE.
Multithreading Level: Unsafe
KWorkFunc
w_register_func (flag (*func) (void **info), void *info,
unsigned int priority)
Returns: A KWorkFunc object. On failure, the process aborts.
Multithreading Level: Unsafe
void
w_unregister_func (KWorkFunc wf)
Returns: Nothing.
Multithreading Level: UnsafePrototype Functions
void
w_PROTO_new_func (void *info)
Returns: Nothing.
Multithreading Level: Unsafe
flag
w_PROTO_work_func (void **info)
Returns: TRUE if the work function should be called again, else FALSE
indicating that the work function is to be unregistered.
Multithreading Level: UnsafeTables
w_PRIORITIES List work function priorities
Name Meaning
KWF_PRIORITY_HIGHEST Place function at top of list, any work
functions registered while this one is running
will be placed second in the list
KWF_PRIORITY_HIGH Place function at top of list, any work
functions registered while this one is running
will be placed at the top of the list
KWF_PRIORITY_LOWEST Place function at bottom of the list
Back to Karma Home Page
Web Development: Ariel Internet Services