Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
e1cf7f78
Commit
e1cf7f78
authored
Nov 25, 2007
by
Ian Lynagh
Browse files
On Windows, Delete the CriticalSection's we Initialize
parent
ffac2b22
Changes
3
Hide whitespace changes
Inline
Side-by-side
rts/win32/AsyncIO.c
View file @
e1cf7f78
...
...
@@ -189,6 +189,7 @@ shutdownAsyncIO(rtsBool wait_threads)
CloseHandle
(
completed_table_sema
);
completed_table_sema
=
NULL
;
}
DeleteCriticalSection
(
&
queue_lock
);
}
/*
...
...
rts/win32/IOManager.c
View file @
e1cf7f78
...
...
@@ -461,6 +461,8 @@ void ShutdownIOManager ( rtsBool wait_threads )
}
FreeWorkQueue
(
ioMan
->
workQueue
);
CloseHandle
(
ioMan
->
hExitEvent
);
DeleteCriticalSection
(
&
ioMan
->
active_work_lock
);
DeleteCriticalSection
(
&
ioMan
->
manLock
);
free
(
ioMan
);
ioMan
=
NULL
;
}
...
...
rts/win32/WorkQueue.c
View file @
e1cf7f78
...
...
@@ -82,6 +82,7 @@ FreeWorkQueue ( WorkQueue* pq )
if
(
pq
->
roomAvailable
)
{
CloseHandle
(
pq
->
roomAvailable
);
}
DeleteCriticalSection
(
&
pq
->
queueLock
);
free
(
pq
);
return
;
}
...
...
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