Blender Git Loki
Git Commits -> Revision 02a931a
Revision 02a931a by Ton Roosendaal (master) February 25, 2006, 11:56 (GMT) |
Replacing SDL threads with pthread. For some reason I thought SDL thread handling would be much simpler... but the migration to posix pthread went very smooth and painless. Less code even, and I even notice a slight performance increase! All threading code is still wrapped in blenlib/intern/threads.c Only real change was making the callback functions to return void pointer, instead of an int. The mutex handling is also different... there's no test anymore if a mutex was initialized, which is a bit confusing. But it appears to run all fine still. :) Nathan Letwory has been signalled already to provide the Windows pthread library and make/scons linking. For MSVC we might need help from someone else later though. |
Commit Details:
Full Hash: 02a931ac4fef29e2ce14c92b87f46c9ccfd46ccb
SVN Revision: 6921
Parent Commit: e377a5f
Lines Changed: +35, -45