summaryrefslogtreecommitdiff
path: root/deps/v8/src/v8threads.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-03-23 15:19:12 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-03-23 15:19:32 -0700
commitb35d72df760bb7d65382b156de4863738e28c662 (patch)
tree2d8dbaf477a0a1ebcf92d70b1db30c3085f2c9c2 /deps/v8/src/v8threads.h
parent6e603ccbe2dec3394ea0af86e226bfc9eea7bcd5 (diff)
downloadnode-b35d72df760bb7d65382b156de4863738e28c662.tar.gz
Upgrade V8 to 2.1.7
Diffstat (limited to 'deps/v8/src/v8threads.h')
-rw-r--r--deps/v8/src/v8threads.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/v8/src/v8threads.h b/deps/v8/src/v8threads.h
index 068405328..d70aa3c89 100644
--- a/deps/v8/src/v8threads.h
+++ b/deps/v8/src/v8threads.h
@@ -79,6 +79,20 @@ class ThreadState {
};
+// Defined in top.h
+class ThreadLocalTop;
+
+
+class ThreadVisitor {
+ public:
+ // ThreadLocalTop may be only available during this call.
+ virtual void VisitThread(ThreadLocalTop* top) = 0;
+
+ protected:
+ virtual ~ThreadVisitor() {}
+};
+
+
class ThreadManager : public AllStatic {
public:
static void Lock();
@@ -90,6 +104,7 @@ class ThreadManager : public AllStatic {
static bool IsArchived();
static void Iterate(ObjectVisitor* v);
+ static void IterateThreads(ThreadVisitor* v);
static void MarkCompactPrologue(bool is_compacting);
static void MarkCompactEpilogue(bool is_compacting);
static bool IsLockedByCurrentThread() { return mutex_owner_.IsSelf(); }