diff options
Diffstat (limited to 'src/pkg/runtime/darwin/thread.c')
-rw-r--r-- | src/pkg/runtime/darwin/thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/runtime/darwin/thread.c b/src/pkg/runtime/darwin/thread.c index 235d69abf..6733e815e 100644 --- a/src/pkg/runtime/darwin/thread.c +++ b/src/pkg/runtime/darwin/thread.c @@ -82,8 +82,8 @@ runtime·unlock(Lock *l) } } -void -runtime·destroylock(Lock *l) +static void +destroylock(Lock *l) { if(l->sema != 0) { runtime·mach_semdestroy(l->sema); @@ -147,6 +147,7 @@ runtime·osinit(void) // to let the C pthread libary install its own thread-creation callback. if(!runtime·iscgo) runtime·bsdthread_register(); + runtime·destroylock = destroylock; } void |