|
Boost : |
Subject: Re: [boost] [interprocess] native Windows cond_var + mutex
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-10-28 13:42:09
El 27/10/2011 14:24, Dan Brown escribió:
>
> Hi,
>
> Attached is a patch to implement interprocess_condition and
> interprocess_mutex natively on Windows. Following are some detailed
> notes. I hope this isn't too awkward of a time for a submission like
> this - I realize there's a lot of 1.48 activity going on. One more
> note about the patch - IIRC, some patch utils won't create
> directories. This patch is intended to be applied to
> boost/interprocess and relies on a new directory
> boost/interprocess/sync/win32.
You can't put HANDLEs as members for classes shared in memory between
processes as they are void pointers only useful for the process that
creates them. Using native windows synchronization for process shared
synchronization primitives with POSIX lifetime semantics is not easy, no
project like APR or Cygwin has achieved this AFAIK.
Ion
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk