src: drop homegrown thread pool, use libplatform
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 2 Apr 2015 21:51:01 +0000 (23:51 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 3 Apr 2015 22:21:39 +0000 (00:21 +0200)
commit4a801c211c8fec4df97748a740f98fa09f11b3d9
tree5b527f20d92e0a1c09c29a219845902e06b836a6
parent87053e8aee527ec2eb6ac4db2a476e20e1c5f23b
src: drop homegrown thread pool, use libplatform

Drop the homegrown thread pool that was introduced in commit 50839a0
("v8_platform: provide default v8::Platform impl") and use one from
V8's libplatform library.  Performance is comparable and it removes
a few hundred lines of code.

The calls to v8::platform::PumpMessageLoop() are currently no-ops
because V8 does not (yet?) use v8::Platform::CallOnForegroundThread().

Packagers that link against a shared libv8 now also need to make
libv8_platform available.

PR-URL: https://github.com/iojs/io.js/pull/1329
Reviewed-By: Fedor Indutny <fedor@indutny.com>
configure
node.gyp
src/node.cc
src/node_v8_platform.cc [deleted file]
src/node_v8_platform.h [deleted file]