ipc-functions: Utilities for working with IPC objects

Description Usage Arguments Value Examples

Description

Use ipcid() to generate a unique mutex or counter identifier. A mutex or counter with the same id, including those in different processes, share the same state.

ipcremove() removes external state associated with mutex or counters created with id.

Usage

1
2
3
ipcid(id)

ipcremove(id)

Arguments

id

character(1) (optional for ipcid()) identifier string for mutex or counter.

Value

ipcid() returns a character(1) unique identifier, with id (if not missing) prepended.

ipcremove() returns (invisibly) TRUE if external resources were release or FALSE if not (e.g., because the resources has already been released).

Examples

1
2
3
4
5
ipcid()
id <- ipcid("example-identifier")
id

ipcremove(id)

mtmorgan/IPCMutex documentation built on May 23, 2019, 9:34 a.m.