locker.cc 385 B

12345678910111213141516
  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. #include "atom/common/api/locker.h"
  5. namespace mate {
  6. Locker::Locker(v8::Isolate* isolate) {
  7. if (IsBrowserProcess())
  8. locker_.reset(new v8::Locker(isolate));
  9. }
  10. Locker::~Locker() {}
  11. } // namespace mate