forked from len0rd/rockbox
Android: Change headphone detection to call into native.
Making a JNI call from tick tasks is not permitted as the underlying thread is not attached to the Java VM. This is an error and crashes in the emulator (which has stricter JNI checks enabled by default). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30173 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8bfa84d1b
commit
b2f52477df
3 changed files with 29 additions and 18 deletions
|
|
@ -60,7 +60,13 @@ void interrupt(void)
|
|||
}
|
||||
|
||||
/*
|
||||
* setup a hrtimer to send a signal to our process every tick */
|
||||
* setup a hrtimer to send a signal to our process every tick
|
||||
*
|
||||
* WARNING: JNI calls are not permitted from tick tasks, as the
|
||||
* underlying thread is not attached to the Java VM
|
||||
*
|
||||
* Can be possibly be attached if it really needs to be. but let's
|
||||
* keep this leightweight */
|
||||
void tick_start(unsigned int interval_in_ms)
|
||||
{
|
||||
int ret = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue