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 <[email protected]> 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 > [email protected] > http://lists.nongnu.org/mailman/listinfo/freetype >
_______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
