[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Thread safe
From: |
Roberto Peon |
Subject: |
Re: [Freetype] Thread safe |
Date: |
Wed, 23 Apr 2003 11:45:14 -0400 |
We use freetype in a multithread setting-
We've just instantiated another instance of the library per thread, and havn't
yet run across any problems.
A better question to ask is:
Is the freetype library reentrant?
If not, then you have to serialize access with a mutex, otherwise you can
create an instance per thread and go merrily along your way.
-Roberto JP
robertopeon at sportvision.com
---------- Original Message ----------------------------------
From: "David Turner" <address@hidden>
Reply-To: address@hidden
Date: Wed, 23 Apr 2003 16:42:19 +0200
>todde wrote:
>> Is FreeType 2 thread safe?
>>
>No, but it doesn't use global variables. Also, serializing access
>with a mutex should be trivial.
>
>In other news, using the library with several threads is probably
>a very bad idea anyway, especially if you use caching...
>
>Hope this helps,
>
>- David Turner
>- The FreeType Project (www.freetype.org)
>
>
>