5 #ifndef V8_V8THREADS_H_ 6 #define V8_V8THREADS_H_ 8 #include "src/isolate.h" 21 enum List {FREE_LIST, IN_USE_LIST};
23 void LinkInto(List list);
27 void set_id(
ThreadId id) { id_ = id; }
31 bool terminate_on_restore() {
return terminate_on_restore_; }
32 void set_terminate_on_restore(
bool terminate_on_restore) {
33 terminate_on_restore_ = terminate_on_restore;
37 char* data() {
return data_; }
46 bool terminate_on_restore_;
73 void FreeThreadResources();
78 bool IsLockedByCurrentThread() {
79 return mutex_owner_.Equals(ThreadId::Current());
84 void TerminateExecution(
ThreadId thread_id);
96 void EagerlyArchiveThread();
121 #endif // V8_V8THREADS_H_