Documentation ¶
Index ¶
- type TFileLocker
- func (l *TFileLocker) IsLocked() bool
- func (l *TFileLocker) IsRLocked() bool
- func (l *TFileLocker) Lock() (err error)
- func (l *TFileLocker) Path() string
- func (l *TFileLocker) RLock() (err error)
- func (l *TFileLocker) RUnlock() (err error)
- func (l *TFileLocker) TryLock() bool
- func (l *TFileLocker) TryRLock() bool
- func (l *TFileLocker) Unlock() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TFileLocker ¶
type TFileLocker struct {
// contains filtered or unexported fields
}
func New ¶
func New(file string) *TFileLocker
func (*TFileLocker) IsLocked ¶
func (l *TFileLocker) IsLocked() bool
func (*TFileLocker) IsRLocked ¶
func (l *TFileLocker) IsRLocked() bool
func (*TFileLocker) Lock ¶
func (l *TFileLocker) Lock() (err error)
func (*TFileLocker) Path ¶
func (l *TFileLocker) Path() string
func (*TFileLocker) RLock ¶
func (l *TFileLocker) RLock() (err error)
func (*TFileLocker) RUnlock ¶
func (l *TFileLocker) RUnlock() (err error)
func (*TFileLocker) TryLock ¶
func (l *TFileLocker) TryLock() bool
func (*TFileLocker) TryRLock ¶
func (l *TFileLocker) TryRLock() bool
func (*TFileLocker) Unlock ¶
func (l *TFileLocker) Unlock() (err error)
Click to show internal directories.
Click to hide internal directories.