Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] Meaning of "unspecified" arguments (scoped_lock constructors)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-13 12:38:07


Mark Reginald James wrote:
> Hello,
> I haven't been able to discover the meaning of "unspecified"
> in things like scoped_lock constructor parameters:
> I'm trying to lock a scoped lock only if the mutex
> is not null. It looks like I need to use one of these
> "unspecified" constructors to assign the mutex but not lock
> it, so that I can then lock it in an "if" statement if the mutex
> is not null.
> I'd be grateful for any help.

The argument you want is boost::interprocess::defer_lock, I think.

It look like the doxygen/boostbook needs some tweaking here.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at