summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-09-18 14:12:41 -0700
committer Elliott Hughes <enh@google.com> 2011-09-18 14:12:41 -0700
commit038a806df72f884d22283a84a31c9a1d35ba1fdf (patch)
treec980ef0f8dbfb35dfedcd9faa0804df3f3e03f84 /src/thread.h
parent3101efb8f0e02fcfa70229c15631755cad758536 (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.h3
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