Doc Thread requirement.

Fixes: 230893354
Test: N/A
Change-Id: I426184840c7bf61fe3369388cfc6db184470acf0
This commit is contained in:
Steven Moreland 2022-05-10 22:57:49 +00:00
parent aceda4728b
commit 90722d254e

View file

@ -42,7 +42,9 @@ class Thread : virtual public RefBase
{
public:
// Create a Thread object, but doesn't create or start the associated
// thread. See the run() method.
// thread. See the run() method. This object must be used with RefBase/sp,
// like any other RefBase object, because they are conventionally promoted
// from bare pointers (Thread::run is particularly problematic here).
explicit Thread(bool canCallJava = true);
virtual ~Thread();