Contents

avoidSync

Declaration

static var avoidSync: IOSurfaceLockOptions { get }

Discussion

If you want to detect/avoid a potentially expensive paging operation (such as readback from a GPU to system memory) when you lock the buffer, you may include this flag. If locking the buffer requires a readback, the lock will fail with an error return of kIOReturnCannotLock.

See Also

Options