Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qbar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
qbar
Commits
00887733
Commit
00887733
authored
5 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Reduce delay after update to compensate for variable delay before update
parent
7f4d66c8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/QBar/Host.hs
+3
-3
3 additions, 3 deletions
src/QBar/Host.hs
with
3 additions
and
3 deletions
src/QBar/Host.hs
+
3
−
3
View file @
00887733
...
...
@@ -63,7 +63,7 @@ runBlocks bar HostHandle{barUpdateEvent, followupEventWaitTimeMVar, newBlockChan
-- Get current value and reset to default value
followupEventWaitTime'
<-
liftIO
$
swapMVar
followupEventWaitTimeMVar
followupEventWaitTimeDefault
-- Wait for
10ms
after first event
s
to catch (almost-)simultaneous
event
updates
-- Wait for
a moment (determined by block update reason)
after
the
first event to catch (almost-)simultaneous
block
updates
liftIO
$
threadDelay
followupEventWaitTime'
liftIO
$
Event
.
clear
barUpdateEvent
...
...
@@ -77,8 +77,8 @@ runBlocks bar HostHandle{barUpdateEvent, followupEventWaitTimeMVar, newBlockChan
-- Register new event handlers immediately after rendering
liftIO
$
updateEventHandlers
blockStates
-- Wait for
10
0ms after rendering a line to limit cpu load of rapid events
liftIO
$
threadDelay
10
0000
-- Wait for
5
0ms after rendering a line to limit cpu load of rapid events
liftIO
$
threadDelay
5
0000
-- Loop
runBlocks'
blocks''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment