< prev index next >

src/os/linux/vm/osThread_linux.hpp

Print this page




  34 
  35   int thread_type() const {
  36     return _thread_type;
  37   }
  38   void set_thread_type(int type) {
  39     _thread_type = type;
  40   }
  41 
  42   // _pthread_id is the pthread id, which is used by library calls
  43   // (e.g. pthread_kill).
  44   pthread_t _pthread_id;
  45 
  46   sigset_t _caller_sigmask; // Caller's signal mask
  47 
  48  public:
  49 
  50   // Methods to save/restore caller's signal mask
  51   sigset_t  caller_sigmask() const       { return _caller_sigmask; }
  52   void    set_caller_sigmask(sigset_t sigmask)  { _caller_sigmask = sigmask; }
  53 
  54 #ifndef PRODUCT
  55   // Used for debugging, return a unique integer for each thread.
  56   int thread_identifier() const   { return _thread_id; }
  57 #endif
  58 #ifdef ASSERT
  59   // We expect no reposition failures so kill vm if we get one.
  60   //
  61   bool valid_reposition_failure() {
  62     return false;
  63   }
  64 #endif // ASSERT
  65   pthread_t pthread_id() const {
  66     return _pthread_id;
  67   }
  68   void set_pthread_id(pthread_t tid) {
  69     _pthread_id = tid;
  70   }
  71 
  72   // ***************************************************************
  73   // suspension support.
  74   // ***************************************************************
  75 
  76 public:
  77   // flags that support signal based suspend/resume on Linux are in a




  34 
  35   int thread_type() const {
  36     return _thread_type;
  37   }
  38   void set_thread_type(int type) {
  39     _thread_type = type;
  40   }
  41 
  42   // _pthread_id is the pthread id, which is used by library calls
  43   // (e.g. pthread_kill).
  44   pthread_t _pthread_id;
  45 
  46   sigset_t _caller_sigmask; // Caller's signal mask
  47 
  48  public:
  49 
  50   // Methods to save/restore caller's signal mask
  51   sigset_t  caller_sigmask() const       { return _caller_sigmask; }
  52   void    set_caller_sigmask(sigset_t sigmask)  { _caller_sigmask = sigmask; }
  53 
  54   // unique integer for each thread

  55   int thread_identifier() const   { return _thread_id; }
  56 
  57 #ifdef ASSERT
  58   // We expect no reposition failures so kill vm if we get one.
  59   //
  60   bool valid_reposition_failure() {
  61     return false;
  62   }
  63 #endif // ASSERT
  64   pthread_t pthread_id() const {
  65     return _pthread_id;
  66   }
  67   void set_pthread_id(pthread_t tid) {
  68     _pthread_id = tid;
  69   }
  70 
  71   // ***************************************************************
  72   // suspension support.
  73   // ***************************************************************
  74 
  75 public:
  76   // flags that support signal based suspend/resume on Linux are in a


< prev index next >