Learn R Programming

Rdsm (version 2.1.1)

mgrmakelock: Create an Rdsm lock.

Description

Creates an Rdsm lock.

Usage

mgrmakelock(cls,lockname,boost=F)

Arguments

cls
The parallel cluster.
lockname
Name of the lock, quoted.
boost
If TRUE, boost locks will be used.

Details

Run this from the manager (the R process from which you create the cluster) if you need a lock. The lock is created, lockable/unlockable by all threads. If boost is TRUE, The variable will be of class boost.mutex; see the library synchronicity for details.