v8
3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
Functions
Variables
Typedefs
a
c
e
f
g
i
j
l
m
n
p
r
s
Enumerations
Enumerator
a
b
c
d
e
k
n
p
r
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
h
i
k
l
n
o
p
r
s
t
u
v
Typedefs
Enumerations
Enumerator
a
b
c
h
k
n
o
p
r
s
t
u
Related Functions
a
c
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
Globals
All
Macros
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
libplatform.h
Go to the documentation of this file.
1
// Copyright 2014 the V8 project 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 file.
4
5
#
ifndef
V8_LIBPLATFORM_LIBPLATFORM_H_
6
#
define
V8_LIBPLATFORM_LIBPLATFORM_H_
7
8
#
include
"include/v8-platform.h"
9
10
namespace
v8
{
11
namespace
platform
{
12
13
/**
14
* Returns a new instance of the default v8::Platform implementation.
15
*
16
* The caller will take ownership of the returned pointer. |thread_pool_size|
17
* is the number of worker threads to allocate for background jobs. If a value
18
* of zero is passed, a suitable default based on the current number of
19
* processors online will be chosen.
20
*/
21
v8
::
Platform
*
CreateDefaultPlatform
(
int
thread_pool_size
= 0);
22
23
24
/**
25
* Pumps the message loop for the given isolate.
26
*
27
* The caller has to make sure that this is called from the right thread.
28
* Returns true if a task was executed, and false otherwise. This call does
29
* not block if no task is pending. The |platform| has to be created using
30
* |CreateDefaultPlatform|.
31
*/
32
bool
PumpMessageLoop
(v8::Platform* platform, v8::Isolate* isolate);
33
34
35
}
// namespace platform
36
}
// namespace v8
37
38
#
endif
// V8_LIBPLATFORM_LIBPLATFORM_H_
include
libplatform
libplatform.h
Generated on Fri Oct 29 2021 20:04:30 for v8 by
1.9.1