[SDL] What are threads allowed to do?
bob at redivi.com
Thu Jan 20 16:37:51 PST 2005
On Jan 20, 2005, at 19:08, Albert Cahalan wrote:
> Looking here:
> I find these bits of advice:
> 1. Don't use any library functions in separate threads
> 2. Lock global variables which may be accessed by multiple threads
> Cool. Taken literally, this means that a thread may
> only burn CPU time. It can not access global variables,
> because locking them would require a library function. The
> thread can not exit; that would require a library function..
> What's the real story?
The thread related functions required for synchronization are of course
thread-safe. Those are guidelines, not strict rules.
More information about the SDL