v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 5131 | skipping to change at line 5131 | |||
class V8_EXPORT Locker { | class V8_EXPORT Locker { | |||
public: | public: | |||
/** | /** | |||
* Initialize Locker for a given Isolate. | * Initialize Locker for a given Isolate. | |||
*/ | */ | |||
V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); } | V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); } | |||
~Locker(); | ~Locker(); | |||
/** | V8_DEPRECATED("This will be remvoed.", | |||
* Start preemption. | static void StartPreemption(Isolate *isolate, int every_n_m | |||
* | s)); | |||
* When preemption is started, a timer is fired every n milliseconds | ||||
* that will switch between multiple threads that are in contention | ||||
* for the V8 lock. | ||||
*/ | ||||
static void StartPreemption(Isolate* isolate, int every_n_ms); | ||||
/** | V8_DEPRECATED("This will be removed", | |||
* Stop preemption. | static void StopPreemption(Isolate* isolate)); | |||
*/ | ||||
static void StopPreemption(Isolate* isolate); | ||||
/** | /** | |||
* Returns whether or not the locker for a given isolate, is locked by th e | * Returns whether or not the locker for a given isolate, is locked by th e | |||
* current thread. | * current thread. | |||
*/ | */ | |||
static bool IsLocked(Isolate* isolate); | static bool IsLocked(Isolate* isolate); | |||
/** | /** | |||
* Returns whether v8::Locker is being used by this V8 instance. | * Returns whether v8::Locker is being used by this V8 instance. | |||
*/ | */ | |||
End of changes. 2 change blocks. | ||||
12 lines changed or deleted | 5 lines changed or added | |||