Use reinterpret_cast instead of static_cast for pthread_t => Thread::id_t
authorMark Slee <mcslee@apache.org>
Tue, 21 Aug 2007 01:54:36 +0000 (01:54 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 21 Aug 2007 01:54:36 +0000 (01:54 +0000)
commit04f0b7b21b4902f356809fced858de8d00bae1b6
treec901a6dd7cf587e1ed0561ad917ebe5bb25eda28
parent1ec47d4395be54319598aa5cd74ee8d44246b335
Use reinterpret_cast instead of static_cast for pthread_t => Thread::id_t

Summary: On FreeBSD pthread_t is a pthread*, not uint64_t, so static_cast gest upset

Reviewed By: dreiss

Test Plan: Compile on FreeBSD

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