|
Rockbox mail archiveSubject: Re: Classic holdswitch pollingRe: 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 template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |