---
title: os_workgroup_join_token_t
framework: os
role: symbol
role_heading: Type Alias
path: os/os_workgroup_join_token_t
---

# os_workgroup_join_token_t

An opaque token that represents a connection between a thread and a workgroup.

## Declaration

```occ
typedef struct os_workgroup_join_token_opaque_s * os_workgroup_join_token_t;
```

## Discussion

Discussion You provide an uninitialized token structure when calling the os_workgroup_join_self function, which initializes the structure and fills it with information. Use that token structure in a subsequent call to os_workgroup_leave_self to remove the thread from the workgroup. important: You must provide the original thread, workgroup, and token when removing a thread from its workgroup. If the values don’t match, the system aborts your process.

## See Also

### Thread Attachment

- [os_workgroup_join](os/os_workgroup_join.md)
- [os_workgroup_leave](os/os_workgroup_leave.md)
