Learn R Programming

synchronicity (version 1.3.5)

describe: Create descriptors to mutexes and attach

Description

The describe function returns information that is needed to ``connect'' to a mutex from another process. This connection is performed by the attach.mutex function.

Usage

describe(x)

Value

The describe function returns a boost.mutex.descriptor object.

Arguments

x

a boost.mutex object

Author

Michael J. Kane <bigmemoryauthors@gmail.com>

Examples

Run this code
  m = boost.mutex()
  mm = attach.mutex(describe(m))
  # Now, both m and mm specify the same mutex.
  rm(m)
  rm(mm)
  gc()

Run the code above in your browser using DataLab