Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
582e032f
Commit
582e032f
authored
Jul 12, 2003
by
sof
Browse files
[project @ 2003-07-12 00:10:31 by sof]
awaitRequests(): BlockedOnDelay threads not expected on blocked_queue
parent
21443993
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/win32/AsyncIO.c
View file @
582e032f
...
...
@@ -5,6 +5,7 @@
* (c) sof, 2002-2003.
*/
#include
"Rts.h"
#include
"RtsUtils.h"
#include
<windows.h>
#include
<stdio.h>
#include
"Schedule.h"
...
...
@@ -195,7 +196,6 @@ start:
prev
=
NULL
;
for
(
tso
=
blocked_queue_hd
;
tso
!=
END_TSO_QUEUE
;
tso
=
tso
->
link
)
{
switch
(
tso
->
why_blocked
)
{
case
BlockedOnDelay
:
case
BlockedOnRead
:
case
BlockedOnWrite
:
case
BlockedOnDoProc
:
...
...
@@ -203,11 +203,9 @@ start:
/* Found the thread blocked waiting on request; stodgily fill
* in its result block.
*/
if
(
tso
->
why_blocked
!=
BlockedOnDelay
)
{
tso
->
block_info
.
async_result
->
len
=
completedTable
[
i
].
len
;
tso
->
block_info
.
async_result
->
errCode
=
completedTable
[
i
].
errCode
;
}
tso
->
block_info
.
async_result
->
len
=
completedTable
[
i
].
len
;
tso
->
block_info
.
async_result
->
errCode
=
completedTable
[
i
].
errCode
;
/* Drop the matched TSO from blocked_queue */
if
(
prev
)
{
prev
->
link
=
tso
->
link
;
...
...
@@ -225,6 +223,9 @@ start:
}
break
;
default:
if
(
tso
->
why_blocked
!=
NotBlocked
)
{
barf
(
"awaitRequests: odd thread state"
);
}
break
;
}
prev
=
tso
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment