From 8ecb9a765e02a8b19d8fad2afa65aee2a068b01a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 27 Aug 2014 23:32:49 -0400 Subject: runtime: rename Lock to Mutex Mutex is consistent with package sync, and when in the unexported Go form it avoids having a conflcit between the type (now mutex) and the function (lock). LGTM=iant R=golang-codereviews, iant CC=dvyukov, golang-codereviews, r https://golang.org/cl/133140043 --- src/pkg/runtime/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/stack.c') diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index 0ce869f442..96f1946db2 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -32,7 +32,7 @@ enum // order = log_2(size/FixedStack) // There is a free list for each order. static MSpan stackpool[NumStackOrders]; -static Lock stackpoolmu; +static Mutex stackpoolmu; // TODO: one lock per order? void -- cgit v1.3