Extract the shared memory name from a shared object. This name can be
passed to map_shared() to open the same region in another process.
Arguments
- x
a shared object as returned by
share()ormap_shared().
Value
A character string identifying the shared object, or NULL if
x is not a shared object. For a sub-list or element extracted from a
shared list, the string carries a bracketed 1-based index path (e.g.
"/mori_abc_1[2,3]"). map_shared() accepts both forms; the
path-qualified form returns the addressed sub-object directly. The
underlying shared memory region name is the prefix before [ and is
recoverable via sub("\\[.*$", "", shared_name(x)).
See also
map_shared() to open a shared region by name.