Learn R Programming

bigmemory (version 2.3)

rw.mutex-class: Mutual exclusions (mutexes) for shared memory.

Description

Support for read/write mutual exclusions for objects in shared memory (separately from the mutexes used with shared matrices).

Arguments

Objects from the Class

Objects can be created by calls of the form new("rw.mutex", ...).

Warning

Mutexes are not for the faint of heart. But if you want an additional set of locks beyond those already implemented with a shared matrix, you'll need this. We recommend you look at the documentation in shared.big.matrix, or contact us if you have questions.

References

*nix system libraries pthread, ipc, and shm.

See Also

big.matrix, shared.big.matrix.

Examples

Run this code
showClass("rw.mutex")

Run the code above in your browser using DataLab