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:
Russ Cox 2010-02-08 21:41:54 -08:00
parent 9e2c9bb0ca
commit 62d627f0bc
11 changed files with 102 additions and 37 deletions

View file

@ -174,6 +174,11 @@ unlock(Lock *l)
futexunlock(l);
}
void
destroylock(Lock *l)
{
}
// One-time notifications.
//