method

mon_synchronize

mon_synchronize()
public

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