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
2

Arguments

x

a boost.mutex object

obj

a boost.mutex.descriptor object

...

other options needed to attach to a mutex.

Value

The describe function returns a boost.mutex.descriptor object. the attach.mutex function returns a boost.mutex object described by obj.

Author(s)

Michael J. Kane <bigmemoryauthors@gmail.com>

Examples

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

synchronicity documentation built on May 2, 2019, 5:24 p.m.