Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-02-25 14:56:08 +0300
committerTon Roosendaal <ton@blender.org>2006-02-25 14:56:08 +0300
commit02a931ac4fef29e2ce14c92b87f46c9ccfd46ccb (patch)
tree84ee6df6290c04640033a5f88dfc8a2c114e92ed /source/blender/blenlib/BLI_threads.h
parente377a5f7210d2cd26d48344df38e6381a86a635d (diff)
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.
Diffstat (limited to 'source/blender/blenlib/BLI_threads.h')
-rw-r--r--source/blender/blenlib/BLI_threads.h2
1 files changed, 1 insertions, 1 deletions
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);