You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/09/01 20:03:08 UTC
svn commit: r810150 -
/incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp
Author: dreiss
Date: Tue Sep 1 18:03:07 2009
New Revision: 810150
URL: http://svn.apache.org/viewvc?rev=810150&view=rev
Log:
THRIFT-214. cpp: Qualify another cast
r722337 only fixed one occurrence of this issue.
Not sure why this one hasn't been a problem before,
but it is breaking compilation on Mac OS 10.6.
Modified:
incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp
Modified: incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp?rev=810150&r1=810149&r2=810150&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp (original)
+++ incubator/thrift/trunk/lib/cpp/src/concurrency/PosixThreadFactory.cpp Tue Sep 1 18:03:07 2009
@@ -286,8 +286,7 @@
void setDetached(bool value) { detached_ = value; }
Thread::id_t getCurrentThreadId() const {
- // TODO(dreiss): Stop using C-style casts.
- return (id_t)pthread_self();
+ return (Thread::id_t)pthread_self();
}
};