diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-10-02 19:14:25 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-10-02 19:14:25 -0400 |
commit | e4e371946b2ddb8adfb03c637992b0b3d3575f5f (patch) | |
tree | 01032b18f02ea60c169b9bf4117233dfa3645f0d /scheduler/sysman.h | |
parent | 9d4ae311cb628b5d183f850d2be0f19e164bf795 (diff) | |
download | cups-e4e371946b2ddb8adfb03c637992b0b3d3575f5f.tar.gz |
The scheduler did not run with a high enough priority, causing problems on
busy systems (rdar://33789342)
- Change ProcessType to Adaptive for both cupsd and cups-lpd
- Add "working" parameter to cupsdSetBusyState
- Call cupsdSetBusyState on startup to boost the priority on startup.
Diffstat (limited to 'scheduler/sysman.h')
-rw-r--r-- | scheduler/sysman.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scheduler/sysman.h b/scheduler/sysman.h index 929ee7358..74c667b0d 100644 --- a/scheduler/sysman.h +++ b/scheduler/sysman.h @@ -1,7 +1,7 @@ /* * System management definitions for the CUPS scheduler. * - * Copyright 2007-2014 by Apple Inc. + * Copyright 2007-2017 by Apple Inc. * Copyright 2006 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -54,6 +54,6 @@ VAR int SysEventPipes[2] VALUE2(-1,-1); extern void cupsdAllowSleep(void); extern void cupsdCleanDirty(void); extern void cupsdMarkDirty(int what); -extern void cupsdSetBusyState(void); +extern void cupsdSetBusyState(int working); extern void cupsdStartSystemMonitor(void); extern void cupsdStopSystemMonitor(void); |