describe: Create descriptors to mutexes and attach

Description Usage Arguments Value Author(s) Examples

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

1

Arguments

x

a boost.mutex object

Value

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

Author(s)

Michael J. Kane <bigmemoryauthors@gmail.com>

Examples

1
2
3
4
5
6
  m = boost.mutex()
  mm = attach.mutex(describe(m))
  # Now, both m and mm specify the same mutex.
  rm(m)
  rm(mm)
  gc()

synchronicity documentation built on May 2, 2019, 8:58 a.m.