<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_workgroup_working_arena_destructor_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@T@os_workgroup_working_arena_destructor_t"
  },
  "title" : "os_workgroup_working_arena_destructor_t"
}
-->

# os_workgroup_working_arena_destructor_t

A function that deallocates a workgroup’s currently assigned shared memory.

```
typedef void (*)(void *) os_workgroup_working_arena_destructor_t;
```

## Discussion

Define a custom function of this type to clean up or deallocate the shared memory you assign to a workgroup. If you call the [`os_workgroup_set_working_arena`](/documentation/os/os_workgroup_set_working_arena) function on a workgroup that already has a shared memory block, the workgroup calls this function with the current block before saving the new block to the workgroup.

---

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)