Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::thread within a dll
From: Matheus Araújo Aguiar (matheus.pit_at_[hidden])
Date: 2010-10-27 07:23:44


On Tue, Oct 26, 2010 at 7:00 PM, Igor R <boost.lists_at_[hidden]> wrote:

> > I'm facing some problems with a dll that uses boost::thread, boost::mutex
> > and boost::condition_variable. Currently i am clueless about what is
> causing
> > the problem and wanted to know if it is ok to use boost::thread and the
> > others aforementioned within a dll. Basically, in a singleton in the dll,
> > some threads are created and consume tasks (wrapped with boost::bind)
> from a
> > queue, using boost::mutex to avoid concurrency problems and
> > boost::condition_variable to sleep and wake, depending on emptiness of
> the
> > task queue. Sorry for the brief and rapid description of my problem.
> > Could anyone point to me if using these might cause problems with dlls?
>
> What problems? Did you mention any problem?
> I'm using boost.thread within a COM dll and didn't encounter any problems.
>
Thing is i do not really know the problems, because i am not the one coding
the dll. But basically it seems to be seg. faults and stalled threads.
Just wanted to ask if it is not recommended to use those libraries within a
dll.
Guess it is allright then.

Thanks for the attention,

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Matheus Araújo Aguiar
Computer Scientist
matheus.pit_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net