|
Boost Users : |
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2007-03-23 12:07:21
Sunil Chomal wrote:
[snip]
> In priv_open_or_create() one creates the mapped_region which in turn calls
> mmap() to map the shared memory to the addr specified by us. However the
> mapped_region object that is created here is as follows:
>
> mapped_region region(dev, read_write);
>
> here the address is not passed to the to the mapped_region constructor,
> which has default arguments for addr which is '0'. Hence, the
> fixed_managed_shared_memory is never allocated at the addr specified.
>
> [snip]
>
> A work around that I have done is to create the mapped_region as follows:
>
> mapped_region region(dev, read_write, 0, 0, addr);
Yes, this is a bug. Thanks for pointing it. Your fix is correct. I will
apply it to the CVS code.
Thanks for the bug fix,
Ion
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net