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/malloc.h | |
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/malloc.h')
-rw-r--r-- | src/pkg/runtime/malloc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 05f500a1e..3a3b9bef6 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -318,8 +318,7 @@ void* SysAlloc(uintptr); void SysUnused(void*, uintptr); void SysFree(void*, uintptr); -void addfinalizer(void*, void*); -void* getfinalizer(void*, bool); +void* getfinalizer(void*, bool, int32*); enum { |