freetype
[Top][All Lists]
Advanced

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

Re: [ft] freetype and threads


From: Róbert Márki
Subject: Re: [ft] freetype and threads
Date: Mon, 6 Dec 2010 08:44:20 +0100

Hi

I strongly suggest to use multiple FT_Library objects, one for each thread, no locking is necessary.
"For multi-threading applications each thread should have its own FT_Library object."
http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Library



On Mon, Dec 6, 2010 at 8:32 AM, Zoltan Kovacs <address@hidden> wrote:
Hi.

I am using freetype in one of my projects and have a question about
freetype and how thread safe it is.

My question is really simple: can I call FT_Load_Glyph() from
different threads at the same time while having only one FT_Library
instance?

I tried but it seems to cause corrupted rendering output so I think
that part should be protected by some locking mechanism in my
application to prevent parallel execution of FT_Load_Glyph() function.

Thanks,
Zoltan

_______________________________________________
Freetype mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype


reply via email to

[Prev in Thread] Current Thread [Next in Thread]