mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
provide slightly more complete Thread.nativeGetStatus implementation
This fixes SimpleFramework (which depends on Thread.getState returning Thread.State.NEW for unstarted threads) when using the Android class library.
This commit is contained in:
parent
b406e9c2ed
commit
ffb0f9b345
@ -965,10 +965,14 @@ extern "C" AVIAN_EXPORT int64_t JNICALL
|
||||
}
|
||||
|
||||
extern "C" AVIAN_EXPORT int64_t JNICALL
|
||||
Avian_java_lang_Thread_nativeGetStatus(Thread*, object, uintptr_t*)
|
||||
Avian_java_lang_Thread_nativeGetStatus(Thread*,
|
||||
object,
|
||||
uintptr_t* arguments)
|
||||
{
|
||||
// todo
|
||||
return 1;
|
||||
enum { New, Runnable, Blocked, Waiting, TimedWaiting, Terminated };
|
||||
|
||||
// todo: more detail? (e.g. waiting, terminated, etc.)
|
||||
return arguments[1] ? Runnable : New;
|
||||
}
|
||||
|
||||
extern "C" AVIAN_EXPORT int64_t JNICALL
|
||||
|
Loading…
Reference in New Issue
Block a user