threadlock 1.3.2
Use the threadlock function in your class definition to automatically run instance methods inside of an instance-wide re-entrant lock (Monitor). All locked methods in an instance are protect by a single lock. You can protect all or some of your methods from being run asynchronously. In Ruby>=2.1, threadlock can also be syntactically used as a decorator.