Skip to content

Commit

Permalink
OSYSTEM: Mention that our OSystem graphics API is not thread safe.
Browse files Browse the repository at this point in the history
Based on f621f6a and the fact that our OpenGL
based backends do not (and sometimes cannot easily) implement it in a thread
safe manner.
  • Loading branch information
lordhoto committed Aug 6, 2011
1 parent df3bc62 commit bcd07d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/system.h
Expand Up @@ -403,6 +403,11 @@ class OSystem : Common::NonCopyable {
* factor 2x, too, just like the game graphics. But if it has a
* cursorTargetScale of 2, then it shouldn't be scaled again by
* the game graphics scaler.
*
* On a note for OSystem users here. We do not require our graphics
* to be thread safe and in fact most/all backends using OpenGL are
* not. So do *not* try to call any of these functions from a timer
* and/or audio callback (like readBuffer of AudioStreams).
*/
//@{

Expand Down

0 comments on commit bcd07d3

Please sign in to comment.