[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] mix usage of boost.thread and pthread?
From:       OvermindDL1 <overminddl1 () gmail ! com>
Date:       2010-01-30 7:23:25
Message-ID: 3f49a9f41001292323h51f77c55od77729bdd32c6f22 () mail ! gmail ! com
[Download RAW message or body]

On Fri, Jan 29, 2010 at 11:22 PM, Hua Su <huas.su@gmail.com> wrote:
>
> On Sat, Jan 30, 2010 at 7:37 AM, Anthony Williams <anthony.ajw@gmail.com>
> wrote:
>>
>> Hua Su <huas.su@gmail.com> writes:
>>
>> > Is it OK to use both pthread and boost.thread in the same program under
>> > linux?
>>
>> Yes.
>>
>> > 1. use pthread api to create/join/detach/cancel threads but use
>> > boost.thread's
>> > mutex/condition_variable etc. to do thread  synchronization, and
>> > this_thread/
>> > sleep/get_id/thread_local_storage etc..
>>
>> That's fine.
>
> Another reply of this topic by OvermindDL1 said "things like this_thread
> will not work on non Boost.Threads". Could you give any explanation about
> this?

I may be wrong, but I could have *sworn* that at one point in time if
I used native windows threads, then some of the Boost.Threads
functionality just kind of choked.  Am I wrong?  If so, I would love
to know.  :)
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic