From 4227e0fcd8ab454433d9c3d94da6eae68dfc1689 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 8 Feb 2010 21:41:54 -0800 Subject: 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 --- src/pkg/runtime/linux/thread.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pkg/runtime/linux') 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. // -- cgit v1.2.3