The function android-main-thread-p
is the predicate for whether the current thread is the Android main (GUI) thread.
For testing, on non-Android platforms android-main-thread-p
checks whether the current Lisp process is *android-main-process-for-testing* (if this variable is non-nil) or the Idle process (if *android-main-process-for-testing* is nil
).
LispWorks User Guide and Reference Manual - 20 Sep 2017