Skip to contents

Extract the SHM region name from a shared object. This name can be passed to map_shared() to open the same region in another process.

Usage

shared_name(x)

Arguments

x

a shared object as returned by share() or map_shared().

Value

A character string identifying the shared memory region, or the empty string "" if x is not a shared object.

See also

map_shared() to open a shared region by name.

Examples

x <- share(rnorm(100))
shared_name(x)
#> [1] "/mori_199a_3"