From 038a806df72f884d22283a84a31c9a1d35ba1fdf Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 18 Sep 2011 14:12:41 -0700 Subject: 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 --- src/thread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/thread.h') 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 -- cgit v1.2.3-59-g8ed1b