diff options
author | Alexander Levin <al.le@rockbox.org> | 2010-04-18 14:59:09 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2010-04-18 14:59:09 +0000 |
commit | 9c3dc70af5d58b88fd9efeacebce563227454c20 (patch) | |
tree | 8530911112dd35b392e93b31427e1375e1c8eef0 /firmware/kernel.c | |
parent | c8372431612f77643b07899a2a49d8ea96741198 (diff) | |
download | rockbox-9c3dc70af5d58b88fd9efeacebce563227454c20.tar.gz rockbox-9c3dc70af5d58b88fd9efeacebce563227454c20.zip |
Add the guard where it should be used. The net effect is zero now but it might be not in the future if the definitions are changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25669 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r-- | firmware/kernel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index d28e508a77..d7076c935f 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -316,7 +316,9 @@ static void queue_release_sender(struct thread_entry **sender, struct thread_entry *thread = *sender; *sender = NULL; /* Clear slot. */ +#ifdef HAVE_WAKEUP_EXT_CB thread->wakeup_ext_cb = NULL; /* Clear callback. */ +#endif thread->retval = retval; /* Assign thread-local return value. */ *thread->bqp = thread; /* Move blocking queue head to thread since wakeup_thread wakes the first thread in @@ -350,7 +352,9 @@ static void queue_release_all_senders(struct event_queue *q) static void queue_remove_sender_thread_cb(struct thread_entry *thread) { *((struct thread_entry **)thread->retval) = NULL; +#ifdef HAVE_WAKEUP_EXT_CB thread->wakeup_ext_cb = NULL; +#endif thread->retval = 0; } @@ -682,7 +686,9 @@ intptr_t queue_send(struct event_queue *q, long id, intptr_t data) *spp = current; IF_COP( current->obj_cl = &q->cl; ) IF_PRIO( current->blocker = q->blocker_p; ) +#ifdef HAVE_WAKEUP_EXT_CB current->wakeup_ext_cb = queue_remove_sender_thread_cb; +#endif current->retval = (intptr_t)spp; current->bqp = &send->list; |