diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-03-23 15:19:12 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-03-23 15:19:32 -0700 |
commit | b35d72df760bb7d65382b156de4863738e28c662 (patch) | |
tree | 2d8dbaf477a0a1ebcf92d70b1db30c3085f2c9c2 /deps/v8/src/v8threads.h | |
parent | 6e603ccbe2dec3394ea0af86e226bfc9eea7bcd5 (diff) | |
download | node-b35d72df760bb7d65382b156de4863738e28c662.tar.gz |
Upgrade V8 to 2.1.7
Diffstat (limited to 'deps/v8/src/v8threads.h')
-rw-r--r-- | deps/v8/src/v8threads.h | 15 |
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(); } |