|
Boost : |
Subject: Re: [boost] [thread] Can't use boost/thread/mutex.hpp without boost_system
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2012-01-19 03:59:34
> From: Vicente J. Botet Escriba <vicente.botet_at_[hidden]>
>>
>> I just thought if there is a some kind of lightweight mutex that can be
>> used without boost.thread? I can bring something on my own (it is really
>> 20 lines of code) just maybe there is something ready for roll...
>>
>> If not I'll add dependency on system.
>>
> I really thought, that people was looking for a C++11 compliant
> implementation. I see now that I might be wrong.
>
> As for Boost.Chrono, I could add the dependency to Boost.System
> conditionally and come back to the preceding exceptions. Let me know if
> it is worth doing it.
>
> Best,
> Vicente
>
I think I'll just switch to boost::detail::lightweight_mutex in all places
where I don't really need Boost.Thread
Artyom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk