You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/05/23 21:17:20 UTC

svn commit: r1341990 - /thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h

Author: roger
Date: Wed May 23 19:17:20 2012
New Revision: 1341990

URL: http://svn.apache.org/viewvc?rev=1341990&view=rev
Log:
THRIFT-1585 C++ library fails to build with OS X pthread implementation
Patch: David Nadlinger

Modified:
    thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h   (contents, props changed)

Modified: thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h?rev=1341990&r1=1341989&r2=1341990&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h (original)
+++ thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h Wed May 23 19:17:20 2012
@@ -86,9 +86,9 @@ class Thread {
   static inline bool is_current(id_t t) { return t == boost::this_thread::get_id(); }
   static inline id_t get_current() { return boost::this_thread::get_id(); }
 #else
-  typedef uint64_t id_t;
-  static inline bool is_current(pthread_t t) { return pthread_equal(pthread_self(), t); }
-  static inline id_t get_current() { return (Thread::id_t)pthread_self(); }
+  typedef pthread_t id_t;
+  static inline bool is_current(id_t t) { return pthread_equal(pthread_self(), t); }
+  static inline id_t get_current() { return pthread_self(); }
 #endif
 
   virtual ~Thread() {};

Propchange: thrift/trunk/lib/cpp/src/thrift/concurrency/Thread.h
------------------------------------------------------------------------------
    svn:executable = *