]> Cypherpunks repositories - gostls13.git/commit
runtime: rename Lock to Mutex
authorRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 03:32:49 +0000 (23:32 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 03:32:49 +0000 (23:32 -0400)
commit8ecb9a765e02a8b19d8fad2afa65aee2a068b01a
tree66f7622c0f2b2c14943c0b0c5780d00987574e03
parent299117eca0f28b6e379c4d5b7e43e2f13cf0cd36
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
31 files changed:
src/pkg/runtime/atomic_arm.c
src/pkg/runtime/cgocall.c
src/pkg/runtime/chan.go
src/pkg/runtime/chan.h
src/pkg/runtime/cpuprof.goc
src/pkg/runtime/export_test.go
src/pkg/runtime/iface.go
src/pkg/runtime/iface.goc
src/pkg/runtime/lock_futex.c
src/pkg/runtime/lock_sema.c
src/pkg/runtime/malloc.c
src/pkg/runtime/malloc.go
src/pkg/runtime/malloc.h
src/pkg/runtime/mem_plan9.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mprof.go
src/pkg/runtime/mprof.goc
src/pkg/runtime/netpoll.goc
src/pkg/runtime/os_windows.c
src/pkg/runtime/panic.c
src/pkg/runtime/print.c
src/pkg/runtime/proc.c
src/pkg/runtime/proc.go
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h
src/pkg/runtime/sema.go
src/pkg/runtime/stack.c
src/pkg/runtime/stubs.go
src/pkg/runtime/stubs.goc
src/pkg/runtime/syscall_windows.go
src/pkg/runtime/time.go