AudioWorkIntervalCreate
Creates a new interval workgroup for managing real-time audio threads.
Declaration
os_workgroup_interval_t AudioWorkIntervalCreate(const char *name, os_clockid_t clock, os_workgroup_attr_t attr);Parameters
- name:
An optional name for the workgroup. Use this name to identify the workgroups you create. You may specify
NULLfor this parameter. - clock:
The clock type to use when specifying time-related values for the workgroup. For a list of possible values, see Os_clockid_t.
- attr:
Additional attributes to associate with the workgroup. Specify
NULLfor this parameter.
Mentioned in
Return Value
A new interval workgroup object that manages real-time audio threads.
Discussion
Use this function to create a new workgroup object that your code manages. The returned workgroup object has no associated threads initially. Join one or more threads to the workgroup, and designate one thread to manage the workgroup’s schedule. This designated thread sets the workgroup’s schedule using the os_workgroup_interval_start, os_workgroup_interval_update, and os_workgroup_interval_finish functions.