Creating additional handles (share.h)
The functions defined in share.h enable you to create additional memory object handles.
Description:
A new handle created with memobj_share() references an existing memory object but tracks the locks and mappings separately. The associated physical memory isn't released until all handles associated with original memory object are closed. If you've wrapped existing memory and specified a destructor callback, it won't be called until all handles associated with the original memory object are closed.
Page updated:
