Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
6c3f7b65
Commit
6c3f7b65
authored
Apr 01, 2010
by
Simon Marlow
Browse files
Make ioManagerDie() idempotent
Avoids screeds of "event buffer overflowed; event dropped" in conc059(threaded1).
parent
2726a2f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/win32/ThrIOManager.c
View file @
6c3f7b65
...
...
@@ -123,6 +123,10 @@ void
ioManagerDie
(
void
)
{
sendIOManagerEvent
(
IO_MANAGER_DIE
);
// IO_MANAGER_DIE must be idempotent, as it is called
// repeatedly by shutdownCapability(). Try conc059(threaded1) to
// illustrate the problem.
io_manager_event
=
INVALID_HANDLE_VALUE
;
// ToDo: wait for the IO manager to pick up the event, and
// then release the Event and Mutex objects we've allocated.
}
...
...
Write
Preview
Supports
Markdown
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