| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| "v.io/x/ref/runtime/internal/testing/concurrency" |
| // Mutex is a wrapper around the Go implementation of Mutex. |
| // MUTEX INTERFACE IMPLEMENTATION |
| if t := concurrency.T(); t != nil { |
| func (m *Mutex) Unlock() { |
| if t := concurrency.T(); t != nil { |
| // RWMutex is a wrapper around the Go implementation of RWMutex. |
| // RWMUTEX INTERFACE IMPLEMENTATION |
| func (m *RWMutex) Lock() { |
| if t := concurrency.T(); t != nil { |
| func (m *RWMutex) RLock() { |
| if t := concurrency.T(); t != nil { |
| func (m *RWMutex) RLocker() sync.Locker { |
| if t := concurrency.T(); t != nil { |
| func (m *RWMutex) RUnlock() { |
| if t := concurrency.T(); t != nil { |
| func (m *RWMutex) Unlock() { |
| if t := concurrency.T(); t != nil { |
| func (r *rlocker) Lock() { |
| func (r *rlocker) Unlock() { |