/[Apache-SVN]
ViewVC logotype

Revision 920666


Jump to revision: Previous Next
Author: dreiss
Date: Tue Mar 9 05:19:30 2010 UTC (14 years, 8 months ago)
Changed paths: 4
Log Message:
cpp: Let Monitors share Mutex instances

- Let Monitor objects share a Mutex() instance so that more than one
  condition can be implemented on top of a single mutex protecting an
  important data structure.
- Make Mutex and Monitor noncopyable
- Add an accessor to Mutex() so the underlying pthread_mutex_t* can be
  retrieved for passing to pthread_condwait
- Change Monitor to use the actual Mutex class instead of creating a
  naked pthread_mutex_t on its own
- Add new constructors to Monitor

Changed paths

Path Details
Directoryincubator/thrift/trunk/lib/cpp/src/concurrency/Monitor.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/concurrency/Monitor.h modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/concurrency/Mutex.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/concurrency/Mutex.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26