Implement most of VMStack and some of Zygote.
Change-Id: I07e18259a0452a2a9b077148f4f1ca67d3f63427
diff --git a/src/thread_list.h b/src/thread_list.h
index 32bcf20..7840f71 100644
--- a/src/thread_list.h
+++ b/src/thread_list.h
@@ -31,14 +31,13 @@
ThreadList();
~ThreadList();
- bool Contains(Thread* thread);
-
void Dump(std::ostream& os);
// Thread suspension support.
void FullSuspendCheck(Thread* thread);
void ResumeAll();
void SuspendAll();
+ void RunWhileSuspended(Thread* thread, void (*callback)(void*), void* arg);
void Register(Thread* thread);
void Unregister();
@@ -54,7 +53,10 @@
bool AllThreadsAreDaemons();
uint32_t AllocThreadId();
+ bool Contains(Thread* thread);
void ReleaseThreadId(uint32_t id);
+ void Resume(Thread* thread);
+ void Suspend(Thread* thread);
void SuspendAllDaemonThreads();
void WaitForNonDaemonThreadsToExit();