id_t is defined in some OSX header, and the id_t in this function
resolved to that one instead of Thread::id_t. This change fully
qualifies the type to make sure it resolves properly.
Also remove a comment about eliminating the C-style cast, since it
is actually quite appropriate in this case.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@722337
13f79535-47bb-0310-9956-
ffa450edef68
}
}
- id_t getId() {
- // TODO(dreiss): Stop using C-style casts.
- return (id_t)pthread_;
+ Thread::id_t getId() {
+ return (Thread::id_t)pthread_;
}
shared_ptr<Runnable> runnable() const { return Thread::runnable(); }