---
title: AudioWorkIntervalCreate
framework: audiotoolbox
role: symbol
role_heading: Function
path: audiotoolbox/audioworkintervalcreate
---

# AudioWorkIntervalCreate

Creates a new interval workgroup for managing real-time audio threads.

## Declaration

```occ
os_workgroup_interval_tAudioWorkIntervalCreate(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 NULL for this parameter.
- `clock`: The clock type to use when specifying time-related values for the workgroup. For a list of possible values, see doc://com.apple.documentation/documentation/os/os_clockid_t.
- `attr`: Additional attributes to associate with the workgroup. Specify NULL for this parameter.

## Mentioned in

Adding Asynchronous Real-Time Threads to Audio Workgroups

## Return Value

Return Value A new interval workgroup object that manages real-time audio threads.

## Discussion

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.
