Blender Git Commit Log
Git Commits -> Revision 9004dc6
Revision 9004dc6 by Martin Poirier (master) September 2, 2009, 20:57 (GMT) |
Fix thread hanging problem (mostly seen with material preview, but that sneaky f*er could strike any time). Story time: Once upon a time, in the green valley of fileselect, BLI_end_threads would get called on an empty threadbase, depending on the result of a previous call to readdir(). The function would then gladly decrement thread_level to -1 which would cause all kinds of fun havoc. THE END. Made sure thread_level is only incremented and decremented when needed. The caller should never have to make sure of that, especially since it already lets you call with a null threadbase. Please report any further hang (and how to reproduce, if possible). |
Commit Details:
Full Hash: 9004dc665cd303dc6bc84d1ea92716dc0c0020d3
SVN Revision: 22956
Parent Commit: 375f36d
Lines Changed: +11, -8
1 Modified Path:
/source/blender/blenlib/intern/threads.c (+11, -8) (Diff)