From 02a931ac4fef29e2ce14c92b87f46c9ccfd46ccb Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 25 Feb 2006 11:56:08 +0000 Subject: 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. --- source/blender/blenlib/BLI_threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_threads.h') diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 6cbac55ac02..00ea4f7aaab 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -32,7 +32,7 @@ #define BLI_THREADS_H -void BLI_init_threads (ListBase *threadbase, int (*do_thread)(void *), int tot); +void BLI_init_threads (ListBase *threadbase, void *(*do_thread)(void *), int tot); int BLI_available_threads(ListBase *threadbase); int BLI_available_thread_index(ListBase *threadbase); void BLI_insert_thread (ListBase *threadbase, void *callerdata); -- cgit v1.2.3