boost.mutex: Create a boost.mutex object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mutexes.R

Description

This function creates a boost.mutex object.

Usage

1
boost.mutex(sharedName = NULL, timeout = NULL)

Arguments

sharedName

The name of the shared resource corresponding to the mutex. By default a universal unique identifier is supplied.

timeout

The amount of time (in seconds) that the mutex should try to attempt to get a lock. By default no timeout is supplied and the mutex will attempt to acquire the lock indefinitely.

Value

This function returns a boost.mutex object.

Author(s)

Michael J. Kane <bigmemoryauthors@gmail.com>

See Also

synchronicity

Examples

1
2
# Create a boost.mutex object with default resource name and no timeout.
x = boost.mutex()

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