summaryrefslogtreecommitdiff
path: root/deps/v8/src/v8threads.h
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-08-21 13:13:04 +0200
committerRyan <ry@tinyclouds.org>2009-08-21 13:13:04 +0200
commit048a1b8b9e5184f959ce924e76c61f8cd9e91089 (patch)
tree564bc754e09e25209b5ab28aa0b6880f23feb0eb /deps/v8/src/v8threads.h
parent90ac9ab078926fb11a3b1ce5f155caec230e0250 (diff)
downloadnode-new-048a1b8b9e5184f959ce924e76c61f8cd9e91089.tar.gz
Upgrade v8 to 1.3.6
Diffstat (limited to 'deps/v8/src/v8threads.h')
-rw-r--r--deps/v8/src/v8threads.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/v8/src/v8threads.h b/deps/v8/src/v8threads.h
index 83f69f060e..3f81f5706f 100644
--- a/deps/v8/src/v8threads.h
+++ b/deps/v8/src/v8threads.h
@@ -50,6 +50,12 @@ class ThreadState {
void set_id(int id) { id_ = id; }
int id() { return id_; }
+ // Should the thread be terminated when it is restored?
+ bool terminate_on_restore() { return terminate_on_restore_; }
+ void set_terminate_on_restore(bool terminate_on_restore) {
+ terminate_on_restore_ = terminate_on_restore;
+ }
+
// Get data area for archiving a thread.
char* data() { return data_; }
private:
@@ -58,6 +64,7 @@ class ThreadState {
void AllocateSpace();
int id_;
+ bool terminate_on_restore_;
char* data_;
ThreadState* next_;
ThreadState* previous_;
@@ -88,6 +95,8 @@ class ThreadManager : public AllStatic {
static int CurrentId();
static void AssignId();
+ static void TerminateExecution(int thread_id);
+
static const int kInvalidId = -1;
private:
static void EagerlyArchiveThread();