Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IRunLoop2

interface IRunLoop2
Extends IRunLoop This interface extends IRunLoop with an additional API to check whether the calling thread is the run loop thread.

Methods

isCurrentThread()

bool isCurrentThread()
Returns true if the current thread is the run loop thread.

Returns

bool True if called from the thread that this IRunLoop2 is running on, false otherwise.
Last modified on October 29, 2026