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

4 Modified Paths:

/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_threads.h (+1, -1) (Diff)
/source/blender/blenlib/intern/threads.c (+26, -34) (Diff)
/source/blender/render/intern/source/pipeline.c (+7, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021