method

mon_synchronize

ruby latest stable - Class: MonitorMixin
mon_synchronize()
public

Enters exclusive section and executes the block. Leaves the exclusive section automatically when the block exits. See example under MonitorMixin.