All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

android-main-thread-p Function

Summary

Tests whether the current thread is the Android main (GUI) thread.

Package

hcl

Signature

android-main-thread-p => result

Values
result
A boolean.
Description

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).

See also

android-funcall-in-main-thread
*android-main-process-for-testing*


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35