1.1 --- a/src/os/linux/vm/osThread_linux.hpp Fri May 18 09:15:15 2012 -0700 1.2 +++ b/src/os/linux/vm/osThread_linux.hpp Tue May 22 10:11:53 2012 +0200 1.3 @@ -24,6 +24,8 @@ 1.4 1.5 #ifndef OS_LINUX_VM_OSTHREAD_LINUX_HPP 1.6 #define OS_LINUX_VM_OSTHREAD_LINUX_HPP 1.7 + public: 1.8 + typedef pid_t thread_id_t; 1.9 1.10 private: 1.11 int _thread_type; 1.12 @@ -37,13 +39,6 @@ 1.13 _thread_type = type; 1.14 } 1.15 1.16 - private: 1.17 - 1.18 - // _thread_id is kernel thread id (similar to LWP id on Solaris). Each 1.19 - // thread has a unique thread_id (LinuxThreads or NPTL). It can be used 1.20 - // to access /proc. 1.21 - pid_t _thread_id; 1.22 - 1.23 // _pthread_id is the pthread id, which is used by library calls 1.24 // (e.g. pthread_kill). 1.25 pthread_t _pthread_id; 1.26 @@ -56,11 +51,6 @@ 1.27 sigset_t caller_sigmask() const { return _caller_sigmask; } 1.28 void set_caller_sigmask(sigset_t sigmask) { _caller_sigmask = sigmask; } 1.29 1.30 - static size_t thread_id_size() { return sizeof(pid_t); } 1.31 - 1.32 - pid_t thread_id() const { 1.33 - return _thread_id; 1.34 - } 1.35 #ifndef PRODUCT 1.36 // Used for debugging, return a unique integer for each thread. 1.37 int thread_identifier() const { return _thread_id; } 1.38 @@ -72,9 +62,6 @@ 1.39 return false; 1.40 } 1.41 #endif // ASSERT 1.42 - void set_thread_id(pid_t id) { 1.43 - _thread_id = id; 1.44 - } 1.45 pthread_t pthread_id() const { 1.46 return _pthread_id; 1.47 }