Run Tizen Webapps in single process mode
[platform/framework/web/crosswalk-tizen.git] / atom / common / api / locker.h
index e64ef18..0a9eb26 100644 (file)
@@ -8,6 +8,7 @@
 #include <memory>
 
 #include "base/macros.h"
+#include "tizen/common/env_variables.h"
 #include "v8/include/v8.h"
 
 namespace mate {
@@ -20,7 +21,7 @@ class Locker {
 
   // Returns whether current process is browser process, currently we detect it
   // by checking whether current has used V8 Lock, but it might be a bad idea.
-  static inline bool IsBrowserProcess() { return v8::Locker::IsActive(); }
+  static inline bool IsBrowserProcess() { if (::tizen::is_single_process) return true; return v8::Locker::IsActive(); }
 
  private:
   void* operator new(size_t size);