Thread creation and destruction is now handled by the main loop.

Some modifications to the initialization code were also necessary
to keep the system from deadlocking itself immediately; only subthreads
may now call CreateThread or AssignTask.

All threads are guaranteed to get a WaitThread () on them when they're
finished now, which hopefully will stop thread ID leaking (bug #561).


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1311 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2004-01-09 19:11:13 +00:00
parent 248e1e4d6b
commit 702455687a
7 changed files with 212 additions and 8 deletions
+3
View File
@@ -1,4 +1,7 @@
Changes towards version 0.4:
- Thread code refactoring: only the main thread will actually spawn
threads, and thread IDs are properly recycled with SDL_WaitThead ()
once they're done. (With luck, this will fix bug #561) -Michael
- Sound code refactoring: core api is now virtualized,
MixSDL is divided to generic mixer and driver entities - Mika
- Optimized MixSDL mixing and resampling routines