diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-25 20:46:54 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-25 20:46:54 +0000 |
commit | 6bba70b0ec269c53e46c2f36156fc802b3c763a6 (patch) | |
tree | 7b28d9f828087df46dae173ec6f3f0b4ebe9e461 /apps/plugin.h | |
parent | 2a0f5a4200427ae18c9bb4502f38a4be8174e529 (diff) | |
download | rockbox-6bba70b0ec269c53e46c2f36156fc802b3c763a6.tar.gz rockbox-6bba70b0ec269c53e46c2f36156fc802b3c763a6.zip |
current_tick really does need to be volatile since gcc can optimize away checking the value otherwise - found out the hard way. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13715 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a95d80b7aa..3b9ca03e32 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -334,7 +334,7 @@ struct plugin_api { | |||
334 | #ifdef HAVE_PRIORITY_SCHEDULING | 334 | #ifdef HAVE_PRIORITY_SCHEDULING |
335 | void (*priority_yield)(void); | 335 | void (*priority_yield)(void); |
336 | #endif | 336 | #endif |
337 | long* current_tick; | 337 | volatile long* current_tick; |
338 | long (*default_event_handler)(long event); | 338 | long (*default_event_handler)(long event); |
339 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); | 339 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); |
340 | struct thread_entry* threads; | 340 | struct thread_entry* threads; |