Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-05-19 01:02:04


Hi Ryan,

> My current project requires that my use
> of the shared memory segment that we're using be selectable with either
> select or poll, which in effect means that the segment (or portions of it)
> need to have file descriptor associated with it. I know of ways that I can
> hack this by sending the file descriptor outside of the shmem segment and
> maintaing a fake file for each portion of shmem that I need to access but I
> was wondering if you (or any other boost list members) know of a better way
> to do this using the boost::shmem functionality.

Shmem has get_shmem_OS_handle() function which returns a handle to the
internal operating system shared memory handle (file descriptor in case
of shared memory, and HANDLE type in Windows). I suppose (not sure about
that, I haver never done that) that you can try to use select or poll
with it.

Regards,

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk