mirror of
https://github.com/golang/go
synced 2024-11-25 05:57:57 -07:00
runtime: free lock handles on Windows
R=rsc CC=golang-dev https://golang.org/cl/1652041
This commit is contained in:
parent
6cd8537fd1
commit
fdb460ec11
@ -220,6 +220,8 @@ unlock(Lock *l)
|
|||||||
void
|
void
|
||||||
destroylock(Lock *l)
|
destroylock(Lock *l)
|
||||||
{
|
{
|
||||||
|
if(l->event != 0)
|
||||||
|
stdcall(CloseHandle, 1, l->event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user