Library: karma
Link With: -lkarma
wf_test_supported | Test if application supports work functions. |
wf_register_support | Register support for work functions. |
wf_register_notify_func | Register new work function callback. |
wf_work_to_be_done | Test for pending work functions waiting to be called. |
wf_do_work | Do some work. |
wf_register_func | Register a work function. |
wf_unregister_func | Unregister a work function. |
WF_PROTO_new_func | New work function callback. |
WF_PROTO_work_func | Work function. |
WF_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.
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:
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 |