Fix for bug 6991, replace registrars timer tick
Registrar schedules an event every second to do fRoster-CheckSanity(). This uses 2.5% cpu on my machine when idle. Changing it to five seconds lowers it to 0.1% waddlesplash then pointed me to this bug which changes it to watch for team deletion and call fRoster->CheckSanity() As I know little in this area, it's mostly based on what LaunchDaemon does in MessageRecieved. Change-Id: Ie69f9399cab41d2d492d469b5d3dc88e6080c15c Reviewed-on: https://review.haiku-os.org/c/876 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
f290b76670
commit
9edb207fab
@@ -96,7 +96,6 @@ enum {
|
||||
B_REG_GET_MESSAGE_RUNNER_INFO = 'rgri',
|
||||
|
||||
// internal registrar messages
|
||||
B_REG_ROSTER_SANITY_EVENT = 'rgir',
|
||||
B_REG_SHUTDOWN_FINISHED = 'rgsf',
|
||||
B_REG_ROSTER_DEVICE_RESCAN = 'rgrs',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user