Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,316
Issues
4,316
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
387
Merge Requests
387
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
fc03cfda
Commit
fc03cfda
authored
Nov 24, 1999
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 1999-11-24 16:39:33 by simonmar]
Fix bug in threadDelay, where the delay ticks could end up negative.
parent
abf56cfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
ghc/rts/Select.c
ghc/rts/Select.c
+10
-4
No files found.
ghc/rts/Select.c
View file @
fc03cfda
/* -----------------------------------------------------------------------------
* $Id: Select.c,v 1.
4 1999/11/03 15:04:25
simonmar Exp $
* $Id: Select.c,v 1.
5 1999/11/24 16:39:33
simonmar Exp $
*
* (c) The GHC Team 1995-1999
*
...
...
@@ -49,7 +49,8 @@ awaitEvent(rtsBool wait)
StgTSO
*
tso
,
*
prev
,
*
next
;
rtsBool
ready
;
fd_set
rfd
,
wfd
;
int
min
,
numFound
,
delta
;
int
numFound
;
nat
min
,
delta
;
int
maxfd
=
-
1
;
struct
timeval
tv
;
...
...
@@ -200,8 +201,13 @@ awaitEvent(rtsBool wait)
break
;
case
BlockedOnDelay
:
tso
->
block_info
.
delay
-=
delta
;
ready
=
(
tso
->
block_info
.
delay
<=
0
);
if
(
tso
->
block_info
.
delay
>
delta
)
{
tso
->
block_info
.
delay
-=
delta
;
ready
=
0
;
}
else
{
tso
->
block_info
.
delay
=
0
;
ready
=
1
;
}
break
;
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment