Boost logo

Threads-Devel :

From: Kai (kai_at_[hidden])
Date: 2007-07-07 05:14:57


>Hi there,
>just a short question about the usage of scoped_lock in inline functions. Is
>it correct that, depending on whether a function is accepted as inline or
>not by the compiler, a scoped_lock might actually remain active ? I.e.,
>does the scope of a function end even if it is inlined in other code ?

Absolutely. Anything else would be a bad compiler bug.

Best,
Kai

>Sorry if this is a stupid question.
>Best Regards,
>Ruediger


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk