Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/membraneframework/shmex
Elixir bindings for shared memory
https://github.com/membraneframework/shmex
Last synced: 2 days 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T15:20:14.000Z (8 months ago)
- Last Synced: 2024-09-19T23:37:01.464Z (about 2 months ago)
- Language: Elixir
- Homepage:
- Size: 136 KB
- Stars: 11
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Shmex
[![Hex.pm](https://img.shields.io/hexpm/v/shmex.svg)](https://hex.pm/packages/shmex)
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/shmex/)
[![CircleCI](https://circleci.com/gh/membraneframework/shmex.svg?style=svg)](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)
[![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=200&tag=membrane-github)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
Licensed under the [Apache License, Version 2.0](LICENSE)