|
Boost : |
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-12-07 04:40:12
Daren Lee wrote:
> Hi -
>
> I am having problems porting some boost::interprocess code from Win32 to Linux
> (rhel4). I am using boost-1.55.
>
> Here's the setup: I need to find if there is an existing instance of the
> process already running. When the process starts up, it checks the shared
> memory for a bIsProcessingRunning flag. If it is true, the process dumps some
> data into the shared memory and then exits. If not true, then the process
> starts up normally and then checks the shared memory for any updates. The
> class I use to wrap the boost::interprocess is below.
>
> Note: I needed the shared memory location to only be initialized the first
> time it was created so the only way I saw how to do it was through the src
> code was to use the initialization_func_t().
>
> This approach works fine on Win32 but on Linux, it doesn't work.
>
> Thanks in advance for any suggestions or hints.
Which version of Interprocess are you using, CVS version? And I suppose
you meant Boost-1.35?
Regards,
Ion
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk