Overview | Namespace | Class | Index | Help

PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA
PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA
PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA

:: osl ::

## class Thread

Base Classes
  None.

Known Derived Classes
  None.

virtual | abstract | interface | template
YES | YES | YES | NO

File
  thread.hxx

### Public Members

  #### Methods
  Thread( ); |
  virtual ~Thread( ); |
  sal_Bool create( ); |
  sal_Bool createSuspended( ); |
  virtual void suspend( ); |
  virtual void resume( ); |
  virtual void terminate( ); |
  virtual void join( ); |
  sal_Bool isRunning( ); |
  void setPriority( oslThreadPriority Priority ); |
  oslThreadPriority getPriority( ); |
  oslThreadIdentifier getIdentifier( ) const; |
  virtual sal_Bool schedule( ); |
  operator oslThread( ) const; |

  #### Static Methods
  static void * operator new( size_t nSize ) throw( ); |
  static void operator delete( void * pMem ) throw( ); |
  static void * operator new( size_t , void * pMem ) throw( ); |
  static void operator delete( void * , void * ) throw( ); |
  static oslThreadIdentifier getCurrentIdentifier( ); |
  static void wait( const TimeValue & Delay ); |
  static void yield( ); |

### Protected Members

  #### Methods
  virtual void run( ) = 0; | The thread functions calls the protected functions run and onTerminated.
  virtual void onTerminated( ); |

### Private Members

  #### Methods
  Thread( const Thread & ); |
  Thread & operator=( const Thread & ); |

  #### Data
  oslThread m_hThread; |

Top of Page

Copyright © 2003 Sun Microsystems, Inc.