Run Tizen Webapps in single process mode
[platform/framework/web/crosswalk-tizen.git] / atom / common / api / locker.cc
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE.chromium file.
4
5 #include "atom/common/api/locker.h"
6 #include "base/logging.h"
7 #include "tizen/common/env_variables.h"
8
9 namespace mate {
10
11 Locker::Locker(v8::Isolate* isolate) {
12   if (::tizen::is_single_process)
13     return;
14   if (IsBrowserProcess()) {
15     locker_.reset(new v8::Locker(isolate));
16   }
17 }
18
19 Locker::~Locker() {
20 }
21
22 }  // namespace mate