Chromium Code Reviews
DescriptionStart of thread pool implementation
This the initial commit for adding a thread pool to the Dart
server. For now it is hidden behind a flag (--enable_thread_pool)
and when enabled just starts up and processes 100 void tasks.
Mac OS implementation is not tested and Windows implementation is
still pending.
As we are currently not sharing anything between bin/ and vm/ I
have just used pthread calls directly in the Linux and Mac OS
implementation code. However with Monitor and Thread classes from
vm/ the thread pool could be written platform independently. This
can always be changed later.
R=ager@google.com
BUG=
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=2946
Patch Set 1 #Patch Set 2 : Add new .h files to GYP as well #Patch Set 3 : Remove pthread include in platform independent files #Patch Set 4 : Fix compilation on Windows #
Total comments: 8
Patch Set 5 : Addressed review comments from ager@ #
Total comments: 1
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||