Giter VIP home page Giter VIP logo

js-pigpio's People

Contributors

dependabot[bot] avatar miketrebilcock avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

philipphaefele

js-pigpio's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency chai to v5
  • chore(deps): update dependency eslint-config-airbnb-base to v15
  • chore(deps): update dependency eslint-plugin-jsdoc to v48
  • chore(deps): update dependency jsdoc to v4
  • chore(deps): update dependency mocha to v10
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • es6-set ^0.1.4
  • node-constants 0.0.2
  • put 0.0.6
  • chai 3.5.0
  • codecov 3.6.5
  • commitizen 2.10.1
  • cz-conventional-changelog 1.2.0
  • docdash 0.4.0
  • eslint 3.19.0
  • eslint-config-airbnb-base 11.3.2
  • eslint-config-node 1.6.0
  • eslint-plugin-import 2.20.2
  • eslint-plugin-jsdoc 2.4.0
  • istanbul 0.4.5
  • jsdoc 3.6.4
  • mocha 3.5.3
  • mocha-eslint 3.0.1
  • semantic-release 6.3.6
travis
.travis.yml
  • node 7
  • node 6

  • Check this box to trigger a request for Renovate to run again on this repository

Lock mechanism seems to be not working

I'm working on https://www.npmjs.com/package/node-red-node-pi-gpiod and found some issues regarding the Lock mechanism of this library.

Seems that something went wrong in acquireLock().
You are checking in Line 46 if the lock entry !== undefined what is ok for waiting if it is set, but it isn't set at startup, so the loop "content" will never be called. The result is that it never gets set.

I also ran into some problems with timeout() => was never called, so i used process.hrtime() instead.

Result would be something like:

const start = process.hrtime();

while (_LOCKS[this.host + ':' + this.port] !== undefined) {
    var diff = process.hrtime(start)[1] / (1000000 * 500);
        if (diff >= 1){
            break;
        }
}

if (_LOCKS[this.host + ':' + this.port] === undefined) {
    _LOCKS[this.host + ':' + this.port] = 'Locked';
} else {
    throw new Error('Can not acquire Lock');
}

But now i get errors because of the 2nd connection from _callback.js

So my question is how the lock was intended to work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.