Thrift: Allow for alternative Mutex initializers.
authorDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:13 +0000 (22:55 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 10 Jun 2008 22:55:13 +0000 (22:55 +0000)
commitc6dab613003c704f072542f39214f7af64fc0412
tree6cf0c32408e229af01a44f79023d29747ba6fde7
parente3a64923e9620ebf99ff51ed5bfcb366e503c79e
Thrift: Allow for alternative Mutex initializers.

Summary:
Add an argument to the Mutex constructor.
It takes a pointer to a function that initializes the internal pthread_mutex_t.
We provide initializers for default pthread_mutex_t (which is our default),
adaptive mutexes, and recursive mutexes.

Reviewed By: hzhao, psaab, mcslee

Test Plan: Built libthrift.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666362 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/Mutex.cpp
lib/cpp/src/concurrency/Mutex.h