Merge "Doc Thread requirement."

This commit is contained in:
Treehugger Robot 2022-05-12 01:53:32 +00:00 committed by Gerrit Code Review
commit c545516e2c
1 changed files with 3 additions and 1 deletions

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();