Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared memory synchronization primitives #126

Open
bavshin-f5 opened this issue Feb 4, 2025 · 0 comments
Open

Shared memory synchronization primitives #126

bavshin-f5 opened this issue Feb 4, 2025 · 0 comments

Comments

@bavshin-f5
Copy link
Member

To enable use of shared memory in the modules, we need a set of safe abstractions over src/os/unix/ngx_atomic.h, src/core/ngx_shmtx.h, src/core/ngx_slab.h and src/core/ngx_rwlock.h.

The goal is both to offer good safe Rust types and to be interoperable with the existing C types (upstream peers might be the most important here). It is acceptable if these goals lead to a two distinct sets of types.

Some inspiration could be taken from the Rust for Linux project and the Rust Atomics and Locks book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant