diff options
author | Russ Cox <rsc@golang.org> | 2010-02-08 21:41:54 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-08 21:41:54 -0800 |
commit | 4227e0fcd8ab454433d9c3d94da6eae68dfc1689 (patch) | |
tree | 97dc24869f546fd7032625f3b2159ab8afbd1000 /src/pkg/runtime/linux/thread.c | |
parent | 572ffc76eca67ff28370cb29fc76ebcbe2aeb8cd (diff) | |
download | golang-4227e0fcd8ab454433d9c3d94da6eae68dfc1689.tar.gz |
runtime: allow arbitrary return type in SetFinalizer.
finalize chan, to free OS X semaphore inside Lock.
os: finalize File, to close fd.
Fixes issue 503.
R=ken2
CC=golang-dev
http://codereview.appspot.com/204065
Diffstat (limited to 'src/pkg/runtime/linux/thread.c')
-rw-r--r-- | src/pkg/runtime/linux/thread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/thread.c b/src/pkg/runtime/linux/thread.c index 1d857a67c..efb138021 100644 --- a/src/pkg/runtime/linux/thread.c +++ b/src/pkg/runtime/linux/thread.c @@ -174,6 +174,11 @@ unlock(Lock *l) futexunlock(l); } +void +destroylock(Lock *l) +{ +} + // One-time notifications. // |