mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: allow arbitrary return type in SetFinalizer.
finalize chan, to free OS X semaphore inside Lock. os: finalize File, to close fd. Fixes #503. R=ken2 CC=golang-dev https://golang.org/cl/204065
This commit is contained in:
parent
9e2c9bb0ca
commit
62d627f0bc
11 changed files with 102 additions and 37 deletions
|
|
@ -174,6 +174,11 @@ unlock(Lock *l)
|
|||
futexunlock(l);
|
||||
}
|
||||
|
||||
void
|
||||
destroylock(Lock *l)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// One-time notifications.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue