Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4749b4f
)
Thrift:1488 - src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread...
author
Jake Farrell
<jfarrell@apache.org>
Tue, 17 Jan 2012 14:28:05 +0000
(14:28 +0000)
committer
Jake Farrell
<jfarrell@apache.org>
Tue, 17 Jan 2012 14:28:05 +0000
(14:28 +0000)
Client: cpp
Patch: Jake Farrell
Added cast to Thread.h get_current()
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1232424
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/concurrency/Thread.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/concurrency/Thread.h
b/lib/cpp/src/concurrency/Thread.h
index
654778c
..
dc3c748
100755
(executable)
--- a/
lib/cpp/src/concurrency/Thread.h
+++ b/
lib/cpp/src/concurrency/Thread.h
@@
-88,7
+88,7
@@
class Thread {
#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 pthread_self(); }
+ static inline id_t get_current() { return
(Thread::id_t)
pthread_self(); }
#endif
virtual ~Thread() {};