We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1532 - SDL_TTF is currently not thread-safe
Summary: SDL_TTF is currently not thread-safe
Status: NEW
Alias: None
Product: SDL_ttf
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.11
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-02 06:50 UTC by Folkert van Heusden
Modified: 2012-07-02 06:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Folkert van Heusden 2012-07-02 06:50:41 UTC
SDL_TTF is currently not thread-safe. That is: SDL_TTF at itself might be thread-safe but the FreeType library underneath is not accessed in a thread-safe way.
Please consider extending SDL_TTF so that each thread can do a SDL_TTF_Init()-like call which returns a thread-specific structure containing the result of FT_Library (http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Library ).