<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/dispatch_workloop_create_inactive",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@F@dispatch_workloop_create_inactive"
  },
  "title" : "dispatch_workloop_create_inactive"
}
-->

# dispatch_workloop_create_inactive

Creates a new inactive workloop with the specified label.

```
extern dispatch_workloop_tdispatch_workloop_create_inactive(const char *label);
```

## Parameters

`label`

A string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, `sample`, stackshots, and crash reports.  Because apps, libraries, and frameworks can all create their own dispatch queues, a reverse-DNS naming style (`com.example.myqueue`) is recommended. This parameter is optional and can be `NULL`.

## Return Value

The newly created workloop.

## Discussion

Use this function when you want to change the default behavior of the workloop before activating it. For example, use this method if you call [`dispatch_set_qos_class_floor`](/documentation/Dispatch/dispatch_set_qos_class_floor) to configure the minimum quality of service level.

After configuring the workloop, you must call [`activate()`](/documentation/Dispatch/DispatchObject/activate()) before submitting any blocks to it. If you submit blocks to an inactive workloop, the system terminates the current process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)