< prev index next >

src/os/aix/vm/osThread_aix.hpp

Print this page
rev 9449 : 8143125-Further Developments for AIX

*** 25,35 **** #ifndef OS_AIX_VM_OSTHREAD_AIX_HPP #define OS_AIX_VM_OSTHREAD_AIX_HPP public: ! typedef pid_t thread_id_t; private: int _thread_type; public: --- 25,35 ---- #ifndef OS_AIX_VM_OSTHREAD_AIX_HPP #define OS_AIX_VM_OSTHREAD_AIX_HPP public: ! typedef pthread_t thread_id_t; private: int _thread_type; public:
*** 41,53 **** _thread_type = type; } private: ! // _pthread_id is the pthread id, which is used by library calls ! // (e.g. pthread_kill). ! pthread_t _pthread_id; sigset_t _caller_sigmask; // Caller's signal mask public: --- 41,57 ---- _thread_type = type; } private: ! // On AIX, we use the pthread id as OSThread::thread_id and keep the kernel thread id ! // separately for diagnostic purposes. ! // ! // Note: this kernel thread id is saved at thread start. Depending on the ! // AIX scheduling mode, this may not be the current thread id (usually not ! // a problem though as we run with AIXTHREAD_SCOPE=S). ! tid_t _kernel_thread_id; sigset_t _caller_sigmask; // Caller's signal mask public:
*** 64,78 **** // bool valid_reposition_failure() { return false; } #endif // ASSERT ! pthread_t pthread_id() const { ! return _pthread_id; } ! void set_pthread_id(pthread_t tid) { ! _pthread_id = tid; } // *************************************************************** // suspension support. // *************************************************************** --- 68,87 ---- // bool valid_reposition_failure() { return false; } #endif // ASSERT ! tid_t kernel_thread_id() const { ! return _kernel_thread_id; ! } ! void set_kernel_thread_id(tid_t tid) { ! _kernel_thread_id = tid; } ! ! pthread_t pthread_id() const { ! // Here: same as OSThread::thread_id() ! return _thread_id; } // *************************************************************** // suspension support. // ***************************************************************
< prev index next >