WIP - add extractor, generate snippet_data

This commit is contained in:
Stefan Fejes
2019-08-20 15:52:05 +02:00
parent 88084d3d30
commit cc8f1d8a7a
37396 changed files with 4588842 additions and 133 deletions

27
node_modules/lockfile/sockets.md generated vendored Normal file
View File

@ -0,0 +1,27 @@
to ACQUIRE(lockname)
- create server, listen on lockname
- if enotsock, WATCH(lockname)
- if eaddrinuse,
- CONNECT(lockname)
- unref server
- lock has been acquired via server
! on connection, place sockets in queue
to RELEASE(lockname)
- if acquired via connection
- disconnect
- if acquired via server
- send "OK" to front-most connection
- when connection disconnects, RELEASE(lockname)
- if acquired via filename
- unlink file
to CONNECT(lockname)
- net.connect(lockname)
- if enoent or socket termination, ACQUIRE(lockname)
- when server says "OK",
- lock has been acquired via connection
to WATCH(lockname)
- fs.watch(lockname)
- on change, ACQUIRE(lockname)