Use the threadlock method 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 protected by a single lock, unless a specific lock is specified. You can protect all or some of your methods from being run concurrently. In Ruby>=2.1, threadlock can also be used as a syntactic decorator. Enjoy.

Required Ruby Version

None

Authors

Joe McIlvain

Versions

  1. 2.0.0
    1. source

      1. 2.0.0 source December 20, 2013 (6 KB)
  2. 1.3.2
    1. source

      1. 1.3.2 source October 06, 2013 (6 KB)
  3. 1.3.1
    1. source

      1. 1.3.1 source September 29, 2013 (6 KB)
  4. 1.3.0
    1. source

      1. 1.3.0 source September 25, 2013 (6 KB)
  5. 1.2.1
    1. source

      1. 1.2.1 source July 23, 2013 (5.5 KB)
Show all versions (8 total)

SHA 256 checksum