THRIFT-736. cpp: Check for availability of pthread_mutex_timedlock
authorDavid Reiss <dreiss@apache.org>
Mon, 22 Mar 2010 02:34:57 +0000 (02:34 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 22 Mar 2010 02:34:57 +0000 (02:34 +0000)
commit318a328aec8062d6edf5efcd41dc8702a8595253
tree3e2803b6f9d64d6639b8ef53643594384fdb90a7
parentf35a9b9152b66fc47c36ff25240e7704172d18ae
THRIFT-736. cpp: Check for availability of pthread_mutex_timedlock

r920679 introduced a call to pthread_mutex_timedlock, which is not
available on all UNIX variants.  In particular, it is missing on Mac OS.
Add a preprocessor check for the relevant feature macro.  If it fails,
just use a trylock.

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