Code Monkey home page Code Monkey logo

locker's Introduction

locker

A local synchronization library for an erlang applications.

Example usage:

    locker:lock({some, term}),
    % do something
    locker:unlock({some, term}).

Functions brief:

  • lock/{1,2} — wait for release of resource, then lock it (sync);
  • trylock/1 — tries to lock the resource; fails if the resource is already locked;
  • islocked/1 — returns true if the resource is locked by caller process, otherwise return false;
  • withlock/2 — executes a given function under captured lock;
  • lend/2 — if process-executor have captured lock, lend tries to pass ownership of locked resource to another process, which is identified by given PID.

You can obtain more information in sources: src/locker.erl

locker's People

Contributors

alvelcom avatar uprial avatar

Stargazers

Sean P. Myrick V19.1.7.2 avatar Conrad Steenberg avatar Leonardo Rossi avatar Silviu Caragea avatar Sergey Abramyan avatar

Watchers

Aleksandr Zhuravlev avatar Oleg Sharov avatar Yuri Lukyanov avatar Lev Walkin avatar Andrey Vasenin avatar Aleksandr Ovchinnikov avatar Denis Titoruk avatar Dmitry Ivanov avatar Maksim Terekhin avatar  avatar Alexey Kishkin avatar Leonid Mosenkov avatar Ivan Glushkov avatar Kushnir Andrew avatar Alexander Petrovsky avatar James Cloos avatar Valeriy Shkiryak avatar Nikolay Safin avatar Dmitry Bragin avatar Evgeny Tarasov avatar Artem Artemiev avatar Aleksandr Evseev avatar  avatar  avatar Alex Peshkov avatar Stephen Culp avatar Timofey Barmin avatar Ilya avatar Renat Idrisov avatar  avatar Silviu Caragea avatar  avatar Igor Lebedew avatar Alexander Shlygin avatar Sean P. Myrick V19.1.7.2 avatar

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.