---
title: GetWorkQueue
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodriver/getworkqueue
---

# GetWorkQueue

Gets the work queue created by the video object.

## Declaration

```occ
OSSharedPtr<IODispatchQueue> GetWorkQueue();
```

## Return Value

Return Value An OSSharedPtr to an IODispatchQueue on success

## Discussion

Discussion The work queue is used to synchronize access to the driver’s state. Setters and Getters for the driver will be done on the work queue.

## See Also

### Getting information about the class

- [GetClassID](videodriverkit/iouservideodriver/getclassid.md)
- [GetBaseClassID](videodriverkit/iouservideodriver/getbaseclassid.md)
- [IOUserVideoClassID](videodriverkit/videodriverkit/iouservideoclassid.md)
- [GetName](videodriverkit/iouservideodriver/getname.md)
- [SetName](videodriverkit/iouservideodriver/setname.md)
