Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Classic holdswitch polling

Re: Classic holdswitch polling

From: Michael Sevakis <jethead71_at_comcast.net>
Date: Sat, 10 Mar 2012 16:50:29 -0500

> No need to look at the actual mutex, just have a volatile bool
> i2c_in_use that you set to true after locking the mutex and to false
> before releasing it. Then skip the hold switch reading part of the tick
> task if that flag is set to true.

Just giving fair warning. :-) If there's no need for actually checking the
mutex status in this case then use whatever works.

Mike
Received on 2012-03-10


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa