---
title: cumulativeSuspendedWithLockedFileExitCount
framework: metrickit
role: symbol
role_heading: Instance Property
path: metrickit/mxbackgroundexitdata/cumulativesuspendedwithlockedfileexitcount
---

# cumulativeSuspendedWithLockedFileExitCount

The number of times the system terminated the app from the background while being suspended and having file locks.

## Declaration

```swift
var cumulativeSuspendedWithLockedFileExitCount: Int { get }
```

## Discussion

Discussion A common cause for this kind of exit is writing to an SQLite database as the system is suspending the app. For information on what to do with open files and databases when transitioning to the background, see Preparing your UI to run in the background.

## See Also

### Reading the System Termination Count

- [cumulativeAppWatchdogExitCount](metrickit/mxbackgroundexitdata/cumulativeappwatchdogexitcount.md)
- [cumulativeCPUResourceLimitExitCount](metrickit/mxbackgroundexitdata/cumulativecpuresourcelimitexitcount.md)
- [cumulativeMemoryResourceLimitExitCount](metrickit/mxbackgroundexitdata/cumulativememoryresourcelimitexitcount.md)
- [cumulativeMemoryPressureExitCount](metrickit/mxbackgroundexitdata/cumulativememorypressureexitcount.md)
