https://github.com/membraneframework/shmex
Elixir bindings for shared memory
https://github.com/membraneframework/shmex
Last synced: about 1 year ago
JSON representation
Elixir bindings for shared memory
- Host: GitHub
- URL: https://github.com/membraneframework/shmex
- Owner: membraneframework
- License: apache-2.0
- Created: 2018-08-31T14:49:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T15:20:14.000Z (about 2 years ago)
- Last Synced: 2025-03-21T22:33:47.149Z (about 1 year ago)
- Language: Elixir
- Homepage:
- Size: 136 KB
- Stars: 13
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Shmex
[](https://hex.pm/packages/shmex)
[](https://hexdocs.pm/shmex/)
[](https://circleci.com/gh/membraneframework/shmex)
Shmex is a library providing Elixir bindings for shared memory and native
functions to manipulate it in NIFs.
Documentation is available at [HexDocs](https://hexdocs.pm/shmex)
The source code is available at [GitHub](https://github.com/membraneframework/shmex)
## Installation
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
```elixir
{:shmex, "~> 0.5.1"}
```
All native stuff is exported in `:lib` and `:shmex` [Bundlex](https://hex.pm/packages/bundlex) dependencies.
To import, add the following line to your nif specification in `bundlex.exs`
```elixir
deps: [shmex: :lib]
```
and another one in your native header file
```c
#import
```
## Testing
To execute tests run `mix test`. These test tags are excluded by default:
- `shm_tmpfs` - tests that require access to information about shared memory segments present in the OS via tmpfs, not supported e.g. by Mac OS
- `shm_resizable` - tests for functions that involve resizing existing shared memory segments, not supported e.g. by Mac OS
## Copyright and License
Copyright 2018, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
[](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
Licensed under the [Apache License, Version 2.0](LICENSE)