Re: Proposal: Enable threads by default

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.


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