-
Notifications
You must be signed in to change notification settings - Fork 13
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
Implement SharedMemory #30
Conversation
68c649b
to
341469f
Compare
So, if I understand correctly, closing a SharedMemory handle leaves it mapped, but makes it impossible for the process to unmap it. The SharedMemory is not dropped, because an Arc remains in the process' bookkeeping. |
@Orycterope no. When you map a SharedMemory, MappedSharedMemory gets ownership of the underlying handle. As such, the handle cannot be closed until the MappedSharedMemory gets unmapped (which will close the handle). |
- Implements Create/Map/Unmap shared memory syscalls in kernelspace - Implements the equivalent syscall in userspace - Add SharedMemory and MappedSharedMemory userspace types. - MappedSharedMemory contains some unsafe functions that should probably not be used...
341469f
to
c6d95b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
c6d95b3
to
6d5bc6a
Compare
This PR depends on #28 . DO NOT MERGE BEFORE MERGING #28
be used...