Comments (4)
Is it that the API is too restrictive for use on Windows, or that it doesn't support the full feature set that Windows offers through native APIs?
The second part is intentional. My goal when building the package was for building lockfiles separate from the data files it was operating on. So you use a common path to a lockfile, and then if you get that exclusive lock you can start working on the data files.
from flock.
The second part is intentional. […] you use a common path to a lockfile, and then if you get that exclusive lock you can start working on the data files.
Oh. That was not clear to me. Is that reliable? The data files might have unsynced changes, no? I.e. any other processes writing the data files would have to cooperate. (Am no file system expert)
from flock.
The other programs would need to try and take the same lockfile before interacting with the data files. This would be application logic that needs to be implemented.
from flock.
Thank you for the clarification. I got it working very easily now. Closing.
from flock.
Related Issues (19)
- Shared Locking? HOT 4
- Stop file from being deleted (win, mac, linux) HOT 3
- Stutter in flock.NewLock HOT 3
- Close/Unlock won't close the file descriptor if not locked
- incorrect interface HOT 4
- Add codecov to gofrs/flock
- problem with remove lock file in windows HOT 2
- 3rd clause of BSD refers to "linode-netint" HOT 4
- [documentation] Does not implement sync.Locker
- AIX TryLock() issue HOT 1
- Cannot build on Illumos HOT 3
- Problem with file operation on windows HOT 1
- Reconsider exposing the underlying file handle HOT 1
- [Attention] seens not working in unix HOT 1
- Unexpected behaviour: file created when acquiring lock HOT 1
- Cannot build on js/wasm, plan9/386, plan9/amd64, solaris/amd64
- How to writeFile???
- Exposing lock age
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flock.