Re: Proposal: Enable threads by default



On Wed, 2009-12-02 at 13:07 +0000, jcupitt gmail com wrote:
> 2009/12/2 Alexander Larsson <alexl redhat com>:
> > On Wed, 2009-12-02 at 11:48 +0000, jcupitt gmail com wrote:
> >> 2009/12/2 Alexander Larsson <alexl redhat com>:
> >> > I'm certainly for this. Does anyone know of any system in use
> where
> >> > gthreads are not availible?
> >>
> >> One problem I've had in the past is writing mysql plugins.
> >>
> >> I help maintain an image processing library, and one use of the
> >> library was a mysql plugin that added query-by-image-content. To
> get
> >> the plugin working we had to make sure we could run threadless.
> >
> > By threadless, do you mean not linking to the thread library, or do
> you
> > mean "don't spawn threads". Because initializing threads doesn't
> mean
> > we'll create threads, just that we make global us data threadsafe.
> 
> Sorry, I wasn't clear. You mustn't even link to pthreads when building
> mysql plugins.
> 
> Or that used to be the case anyway. I tried a quick google but
> couldn't find anything saying whether or not this was still a problem,
> so this might all be a red herring anyway.

I guess this is the same problem that we had recently, where its not
allowed to dynamically link in libpthreads in a binary that doesn't link
to libpthreads.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's an underprivileged ninja vampire hunter searching for his wife's true 
killer. She's a transdimensional nymphomaniac mermaid with the power to bend 
men's minds. They fight crime! 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]