From 8cfbd3604fac14f629244e521ad24ffa9938c790 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 10 Dec 2008 08:57:10 +0000 Subject: 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 --- apps/plugins/pictureflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/pictureflow.c') 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; static int empty_slide_hid; -struct thread_entry *thread_id; +unsigned int thread_id; struct event_queue thread_q; static char tmp_path_name[MAX_PATH]; @@ -831,7 +831,7 @@ bool create_pf_thread(void) IF_PRIO(, PRIORITY_BACKGROUND) IF_COP(, CPU) ) - ) == NULL) { + ) == 0) { return false; } thread_is_running = true; -- cgit v1.2.3