Deprecate v8::Locker::{Start,Stop}Preemption
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Nov 2013 11:37:32 +0000 (11:37 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 14 Nov 2013 11:37:32 +0000 (11:37 +0000)
BUG=v8:3004
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/63173022

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17736 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

include/v8.h

index d6678c5..f0b627e 100644 (file)
@@ -5246,19 +5246,11 @@ class V8_EXPORT Locker {
 
   ~Locker();
 
-  /**
-   * Start preemption.
-   *
-   * 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 remvoed.",
+                static void StartPreemption(Isolate *isolate, int every_n_ms));
 
-  /**
-   * Stop preemption.
-   */
-  static void StopPreemption(Isolate* isolate);
+  V8_DEPRECATED("This will be removed",
+                static void StopPreemption(Isolate* isolate));
 
   /**
    * Returns whether or not the locker for a given isolate, is locked by the