[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Thread safety in games
Quoting Dan Kegel (email@example.com):
> > Yup, this is also the way ClanLib's internal threads communicate. The
> > external interface to ClanLib however is single threaded - and I believe it
> > should stay that way. All display, sound and network threads should belong
> > to the libs used by the game.
> Not sure what you mean - I assume you mean that ClanLib methods
> are not thread-safe, right? i.e. only one of the game's threads
> should be calling the ClanLib routines at a time?
Yep, and I don't think that the game need more than one thread to run the game
and draw the graphics.