rwMutexLog

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020/11/25 上午1:42

一个可以写 log 的 RWMutex 组件。
通常使用log用于排查死锁问题。
可直接替换 sync 包中的 RWMutex

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RWMutex

type RWMutex struct {
	Logger    *logrus.Logger
	LoggerKey string
	// contains filtered or unexported fields
}

func (*RWMutex) Lock

func (r *RWMutex) Lock()

func (*RWMutex) RLock

func (r *RWMutex) RLock()

func (*RWMutex) RUnlock

func (r *RWMutex) RUnlock()

func (*RWMutex) Unlock

func (r *RWMutex) Unlock()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL