aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-02-08 21:41:54 -0800
committerRuss Cox <rsc@golang.org>2010-02-08 21:41:54 -0800
commit62d627f0bcf7e2afe40e7ec5d61d6964b8284b43 (patch)
tree2bb93457de928ee52c2c260d579a6229b43b7fdd /src/pkg/runtime/linux
parent9e2c9bb0ca26bddc6248e93ae00801e4d4f36be5 (diff)
downloadgo-62d627f0bcf7e2afe40e7ec5d61d6964b8284b43.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/linux')
-rw-r--r--src/pkg/runtime/linux/thread.c5
1 files changed, 5 insertions, 0 deletions
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.
//