Sha256: f0a3c8d841114a1461c29eac6af85f41ad06fe2c8b98ceb68584f25a87f07dbc

Contents?: true

Size: 1.19 KB

Versions: 48

Compression:

Stored size: 1.19 KB

Contents

// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
#define V8_LIBPLATFORM_LIBPLATFORM_H_

#include "v8-platform.h"  // NOLINT(build/include)

namespace v8 {
namespace platform {

/**
 * Returns a new instance of the default v8::Platform implementation.
 *
 * The caller will take ownership of the returned pointer. |thread_pool_size|
 * is the number of worker threads to allocate for background jobs. If a value
 * of zero is passed, a suitable default based on the current number of
 * processors online will be chosen.
 */
v8::Platform* CreateDefaultPlatform(int thread_pool_size = 0);


/**
 * Pumps the message loop for the given isolate.
 *
 * The caller has to make sure that this is called from the right thread.
 * Returns true if a task was executed, and false otherwise. This call does
 * not block if no task is pending. The |platform| has to be created using
 * |CreateDefaultPlatform|.
 */
bool PumpMessageLoop(v8::Platform* platform, v8::Isolate* isolate);


}  // namespace platform
}  // namespace v8

#endif  // V8_LIBPLATFORM_LIBPLATFORM_H_

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
libv8-5.3.332.38.5-arm-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-x86-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-x86_64-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-x86_64-darwin-16 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-x86_64-darwin-15 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-x86_64-darwin-14 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-universal-darwin-16 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-universal-darwin-15 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-universal-darwin-14 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-armv7l-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-amd64-freebsd-11 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.5-amd64-freebsd-10 vendor/v8/include/libplatform/libplatform.h
node-compiler-0.7.0 vendor/node-v6.9.1/deps/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-arm-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-x86-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-x86_64-linux vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-x86_64-darwin-16 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-x86_64-darwin-15 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-universal-darwin-16 vendor/v8/include/libplatform/libplatform.h
libv8-5.3.332.38.3-universal-darwin-15 vendor/v8/include/libplatform/libplatform.h