Here is the use case? We are doing somekind of business app on NodeJS. (We have to do it using Node :) ) We want to block some of the DB operations and some tasks (Task Group A) while app is currently on another set of tasks (Task Group B)
So what I looking for it. I start a lock in doing task (Task Group A) and (Task Group B) So close it when they did it. So I can garantee there is only one thing (as mentioned above) happening at a time. And we are running multiple instances of the Same App too. On Tue, Apr 3, 2012 at 11:51 PM, Naouak <[email protected]> wrote: > I'm sorry, I didn't understand what you mean by locking a library. Can you > provide a concrete example of what you want ? > > It seems what you want is a mutex but I'm not sure. > > Naouak, Grade 2 de Kobal. > Site web: http://www.naouak.net > > > On Tue, Apr 3, 2012 at 20:17, Arunoda Susiripala < > [email protected]> wrote: > >> I'm looking for a locking library for NodeJS. >> Where we can achieve Java Synchronization like effect. >> Here is simple requirements I'm looking for >> >> - Hold a lock something is happening >> - After that release it and allow some other lock to work >> - Work with multiple instances running the same app >> >> Have you guys seen a library which does this or partially does? >> Or add your comments please. >> >> Thanks. >> -- >> Arunoda Susiripala >> >> @arunoda <http://twitter.com/arunoda> >> <http://gplus.to/arunoda>https://github.com/arunoda >> http://www.linkedin.com/in/arunoda >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Arunoda Susiripala @arunoda <http://twitter.com/arunoda> <http://gplus.to/arunoda>https://github.com/arunoda http://www.linkedin.com/in/arunoda -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
