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

NextPrevUpTopContentsIndex

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

Arguments

None.

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 - 20 Sep 2017

NextPrevUpTopContentsIndex