David Nadlinger created THRIFT-1585:
---------------------------------------
Summary: C++ library fails to build with OS X pthread
implementation
Key: THRIFT-1585
URL: https://issues.apache.org/jira/browse/THRIFT-1585
Project: Thrift
Issue Type: Bug
Components: C++ - Library
Affects Versions: 0.9
Environment: OS X 10.7, i686-apple-darwin11-llvm-gcc-4.2 resp. Apple
clang version 3.1
Reporter: David Nadlinger
On OS X, {{pthread_t}} is {{_opaque_pthread_t*}}, but the current
implementation assumes that it is implicitly convertible to {{uint64_t}}.
This yields to:
{quote}
src/thrift/server/TNonblockingServer.cpp: In member function 'void
apache::thrift::server::TNonblockingIOThread::breakLoop(bool)':
src/thrift/server/TNonblockingServer.cpp:1433: error: invalid conversion from
'uint64_t' to '_opaque_pthread_t*'
src/thrift/server/TNonblockingServer.cpp:1433: error: initializing argument 1
of 'static bool
apache::thrift::concurrency::Thread::is_current(_opaque_pthread_t*)'
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira