Reviewers: Michael Starzinger,

Message:
New ConditionVariable class, PTAL.

Description:
Import ConditionVariable class.

Condition variables are synchronization primitives that can be used
to block one or more threads while waiting for condition to become
true.

Right now we have only semaphores, mutexes and atomic operations for
synchronization, which results in quite complex solutions where an
implementation using condition variables and mutexes would be straight
forward.

There's also a performance benefit to condition variables and mutexes
vs semaphores, especially on Windows, where semaphores are kernel
objects, while mutexes are implemented as fast critical sections,
it CAN be beneficial performance-wise to use condition variables
instead of semaphores.

Please review this at https://codereview.chromium.org/23548007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  A src/platform/condition-variable.h
  A src/platform/condition-variable.cc
  M src/platform/mutex.h
  M src/platform/mutex.cc
  M src/platform/time.h
  M src/platform/time.cc
  M src/x64/disasm-x64.cc
  M test/cctest/cctest.gyp
  A test/cctest/test-condition-variable.cc
  M test/cctest/test-platform-linux.cc
  M tools/gyp/v8.gyp


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to