diff options
| author | 2011-09-18 14:12:41 -0700 | |
|---|---|---|
| committer | 2011-09-18 14:12:41 -0700 | |
| commit | 038a806df72f884d22283a84a31c9a1d35ba1fdf (patch) | |
| tree | c980ef0f8dbfb35dfedcd9faa0804df3f3e03f84 /src/thread.h | |
| parent | 3101efb8f0e02fcfa70229c15631755cad758536 (diff) | |
Thread.join, GC daemons, suspend daemons on shutdown, and wait for non-daemon threads to exit.
(I've been testing with a modified SystemMethods test that does various thread
operations.)
Change-Id: I3087087546f90c43da7a0e63fae918ff0a6e7005
Diffstat (limited to 'src/thread.h')
| -rw-r--r-- | src/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h index f4cc747a98..de65d4295a 100644 --- a/src/thread.h +++ b/src/thread.h @@ -265,6 +265,8 @@ class PACKED Thread { State SetState(State new_state); + bool IsDaemon(); + void WaitUntilSuspended(); bool HoldsLock(Object*); @@ -372,6 +374,7 @@ class PACKED Thread { void SetName(const char* name); static void Startup(); + static void FinishStartup(); static void Shutdown(); // JNI methods |