Learn R Programming

shard (version 0.1.0)

segment_open: Open an existing shared memory segment

Description

Open an existing shared memory segment

Usage

segment_open(path, backing = c("mmap", "shm"), readonly = TRUE)

Value

A shard_segment object attached to the existing segment.

Arguments

path

Path or shm name of the segment

backing

Backing type: "mmap" or "shm"

readonly

Open as read-only

Examples

Run this code
# \donttest{
seg <- segment_create(1024, backing = "mmap")
path <- segment_path(seg)
seg2 <- segment_open(path, backing = "mmap", readonly = TRUE)
segment_close(seg2, unlink = FALSE)
segment_close(seg)
# }

Run the code above in your browser using DataLab