diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-10 08:57:10 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-10 08:57:10 +0000 |
commit | 8cfbd3604fac14f629244e521ad24ffa9938c790 (patch) | |
tree | 16dc096519b8b537bb7d4b73e0c97f5f33ee752b /apps/plugins/pictureflow.c | |
parent | 40ff47c7eea41ac893d7af5c5b97ace52a5ffade (diff) | |
download | rockbox-8cfbd3604fac14f629244e521ad24ffa9938c790.tar.gz rockbox-8cfbd3604fac14f629244e521ad24ffa9938c790.zip |
Use cookies for thread identification instead of pointers directly which gives a buffer against wrongly identifying a thread when the slot is recycled (which has been nagging me for awhile). A slot gets 255 uses before it repeats. Everything gets incompatible so a full update is required.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19377 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pictureflow.c')
-rw-r--r-- | apps/plugins/pictureflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c index 29e8a749d5..232c3f6bc4 100644 --- a/apps/plugins/pictureflow.c +++ b/apps/plugins/pictureflow.c | |||
@@ -218,7 +218,7 @@ struct mutex slide_cache_stack_lock; | |||
218 | 218 | ||
219 | static int empty_slide_hid; | 219 | static int empty_slide_hid; |
220 | 220 | ||
221 | struct thread_entry *thread_id; | 221 | unsigned int thread_id; |
222 | struct event_queue thread_q; | 222 | struct event_queue thread_q; |
223 | 223 | ||
224 | static char tmp_path_name[MAX_PATH]; | 224 | static char tmp_path_name[MAX_PATH]; |
@@ -831,7 +831,7 @@ bool create_pf_thread(void) | |||
831 | IF_PRIO(, PRIORITY_BACKGROUND) | 831 | IF_PRIO(, PRIORITY_BACKGROUND) |
832 | IF_COP(, CPU) | 832 | IF_COP(, CPU) |
833 | ) | 833 | ) |
834 | ) == NULL) { | 834 | ) == 0) { |
835 | return false; | 835 | return false; |
836 | } | 836 | } |
837 | thread_is_running = true; | 837 | thread_is_running = true; |