From 62d627f0bcf7e2afe40e7ec5d61d6964b8284b43 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 #503. R=ken2 CC=golang-dev https://golang.org/cl/204065 --- src/pkg/runtime/linux/thread.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pkg/runtime/linux/thread.c') diff --git a/src/pkg/runtime/linux/thread.c b/src/pkg/runtime/linux/thread.c index 1d857a67c6..efb138021f 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.3-5-g9baa