diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-18 09:44:55 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-18 10:40:44 -0400 |
commit | a9713d89e76158c6b7be4d8873a921e30efe688f (patch) | |
tree | 45190bac88a800b95700f5c19fb48bfde9af4182 /tools/root.make | |
parent | ec844f8b6dbd0af6489661615dfb7aba3f251ad1 (diff) | |
download | rockbox-a9713d89e76158c6b7be4d8873a921e30efe688f.tar.gz rockbox-a9713d89e76158c6b7be4d8873a921e30efe688f.zip |
thread-unix patchup!
The changed thread code may not wish to save the old context under
certain circumstances but thread-unix.c assumed it would, cached it
and used it unconditionally.
Also, prevent it from leaking away all the jump buffers (old problem).
Creating and removing threads would eventually run it out of buffers
and then it would crash after that. Plugins, like Pictureflow, which
have worker threads could only be started a few times. Implement a
simple O(1) allocator that will reuse them and stays self-contained
to its own types (as it appears the original author intended).
Change-Id: Icf65413c086b346fb79bf827102b725269e2812c
Diffstat (limited to 'tools/root.make')
0 files changed, 0 insertions, 0 deletions