Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-08-29 15:27:33


On Fri, 27 Aug 2010 17:51:49 +0200, Adam Merz <adammerz_at_[hidden]> wrote:

> Boris Schaeling <boris <at> highscore.de> writes:
> <snip>
>> If there are other ideas how to generate a unique name I can update the
>> code
>> (Windows provides an API to generate UUIDs but unfortunately it
>> requires COM;
>> on POSIX systems I'm not aware of any system function which could
>> generate
>> UUIDs).
>>
>> Boris
>
> For Windows, Neither UuidCreate nor UuidCreateSequential require COM.
> Are these
> not generally suitable for your needs?

Thanks, you are right! I thought there is only CoCreateGuid. But what to
do on POSIX systems? Reinventing Boost.Uuid doesn't make sense?

Here's another idea: The behavior::named_pipe constructor accepts an
optional parameter to set a pipe name. I could add a macro like
BOOST_PROCESS_NO_BOOST_UUID which would remove Boost.Uuid code and require
the caller to set a name. Then everyone is free to generate unique names
with whatever functions are available?

Boris

PS: Found your posting by coincidence (for whatever reason it doesn't show
up in the main thread on news.gmane.org) and replied a bit late now.


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