Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: anrs/flock

Tags

v0.8.0

Toggle v0.8.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.8.0

* Add AIX platform support (gofrs#40 / @Helflym)

v0.7.3

Toggle v0.7.3's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.7.3

* Fix issues in the license file, update year.

v0.7.2

Toggle v0.7.2's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.7.2

* Ensure we release file handle if we failed to take an exclusive lock (gofrs#43 / @azr, gofrs#31 / @virtuald)

v0.7.1

Toggle v0.7.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.7.1

- Fix linting issues and add goreportcard badge (gofrs#34 / @tariq1890)

v0.7.0

Toggle v0.7.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.7.0

- add `New()`  function to package for creating a flock file.
- deprecate `NewFlock()` in favor of `New()`

These two changes were contributed by Egon Elbre (@egonelbre) in gofrs#32.

v0.6.0

Toggle v0.6.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.6.0

* Add method to satisfy `io.Closer` interface. Thanks to
  Dustin Spicuzza (@virtuald) for contributing this in gofrs#21.

v0.5.0

Toggle v0.5.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.5.0

This change includes a behavior improvement which should result in this working
across NFS mounts. This is done transparently, and should not require that
consumers change how they use the package. The methodology decided on by
understanding how the `flock` utility handles this on Linux.

This improvement was contributed by Dustin Spicuzza (@virtuald) in gofrs#22.

v0.4.0

Toggle v0.4.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.4.0

* support for shared locks (RLock) was added by
  @theory (gofrs#15) targeting both UNIX and
  Windows operating systems

v0.3.0

Toggle v0.3.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
Fix issues in Windows discovered using CI

* Fix behavior of TryLock() so that it doesn't return an error when the file is
  already locked.

v0.2.0

Toggle v0.2.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
0.2.0

Add `TryLockContext` method to try and take an exclusive lock, while providing a
retry mechanism with a retry frequency (duration) and a context. This allows you
to retry taking the lock every `n` milliseconds, and to use the context to time
out after a period `t` seconds if no lock could be obtained.

This version introduces a dependency on Go 1.7+.