Enable idle GC for both browser and renderer.
This commit is contained in:
parent
4acbbd1ad7
commit
02de9c3b39
2 changed files with 16 additions and 0 deletions
|
@ -67,12 +67,18 @@ class NodeBindings {
|
|||
// Thread to poll uv events.
|
||||
static void EmbedThreadRunner(void *arg);
|
||||
|
||||
// Do idle GC.
|
||||
static void IdleCallback(uv_timer_t*, int);
|
||||
|
||||
// Whether the libuv loop has ended.
|
||||
bool embed_closed_;
|
||||
|
||||
// Dummy handle to make uv's loop not quit.
|
||||
uv_async_t dummy_uv_handle_;
|
||||
|
||||
// Timer to do idle GC.
|
||||
uv_timer_t idle_timer_;
|
||||
|
||||
// Thread for polling events.
|
||||
uv_thread_t embed_thread_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue