mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-05-22 10:15:43 +02:00
5928e851dd
Bumps [github.com/sasha-s/go-deadlock](https://github.com/sasha-s/go-deadlock) from 0.3.6 to 0.3.9. - [Release notes](https://github.com/sasha-s/go-deadlock/releases) - [Commits](https://github.com/sasha-s/go-deadlock/compare/v0.3.6...v0.3.9) --- updated-dependencies: - dependency-name: github.com/sasha-s/go-deadlock dependency-version: 0.3.9 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
19 lines
511 B
Go
19 lines
511 B
Go
//go:build !goexperiment.synctest && !deadlock_synctest && !deadlock_disable && !go1.25
|
|
|
|
package deadlock
|
|
|
|
// shouldDisableTimerPool determines if timer pooling should be disabled
|
|
// In normal builds, timer pooling is enabled by default for performance
|
|
func shouldDisableTimerPool() bool {
|
|
switch Opts.TimerPool {
|
|
case TimerPoolDefault:
|
|
return false // Default: enable timer pooling for performance
|
|
case TimerPoolEnabled:
|
|
return false
|
|
case TimerPoolDisabled:
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|