Declare special mutex initializers unconditionally.
authorDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 01:18:28 +0000 (01:18 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 01:18:28 +0000 (01:18 +0000)
commitfb1c5ace0afa13d91d744080abd2dac1fbaf2911
tree9020ffe4be322ab09efc0c88b81771680fbe48ec
parenta4d7eef5cd5e946f30c386e1f4fe790f6d5574ad
Declare special mutex initializers unconditionally.

We don't want to include pthread.h in Mutex.h, so we can't detect whether
the non-portable mutex initializers are defined.  Instead, we just declare
them unconditionally and only define them if they are available.
Unfortunately, this means that users will get a link error instead of a
compile error if they try to use them when they are not available.

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