library: libThread #include "TPosixThread.h"

# TPosixThread

class description - source file - inheritance tree (.ps)

## class TPosixThread : public TThreadImp

| Inheritance Chart:

`TObject`

<-

`TThreadImp`

<-

`TPosixThread`

        public:

                          TPosixThread()
                          TPosixThread(const TPosixThread&)
                          ~TPosixThread()
            virtual Int_t CancelPoint()
           static TClass* Class()
            virtual Int_t CleanUp(void** main)
            virtual Int_t CleanUpPop(void** main, Int_t exe)
            virtual Int_t CleanUpPush(void** main, void* free, void* arg)
            virtual Int_t Exit(void* ret)
            virtual Int_t GetTime(ULong_t* absSec, ULong_t* absNanoSec)
          virtual TClass* IsA() const
            virtual Int_t Join(Long_t jid, void** ret)
            virtual Int_t Kill(TThread* th)
            TPosixThread& operator=(const TPosixThread&)
            virtual Int_t Run(TThread* th)
           virtual Long_t SelfId()
            virtual Int_t SetCancelAsynchronous()
            virtual Int_t SetCancelDeferred()
            virtual Int_t SetCancelOff()
            virtual Int_t SetCancelOn()
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
            virtual Int_t Sleep(ULong_t secs, ULong_t nanos = 0)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        public:

          TPosixThreadCleanUp* fCleanUp

## Class Description

     TPosixThread

     This class provides an interface to the posix thread routines.

Int_t Run(TThread *th)

Int_t Join(Long_t jid, void **ret)

Int_t Exit(void *ret)

Int_t Kill(TThread *th)

Int_t SetCancelOff()

Int_t SetCancelOn()

Int_t SetCancelAsynchronous()

Int_t SetCancelDeferred()

Int_t CancelPoint()

Int_t CleanUpPush(void **main, void *free,void *arg)

     pthread_cleanup_push(free, arg);

Int_t CleanUpPop(void **main,Int_t exe)

      pthread_cleanup_pop(exe); // happy pthread future

Int_t CleanUp(void **main)

Long_t SelfId()

Int_t Sleep(ULong_t secs, ULong_t /*nanos*/)

Int_t GetTime(ULong_t * /*absSec*/, ULong_t * /*absNanoSec*/)

### Inline Functions

                     void ~TPosixThread()
             TPosixThread TPosixThread()
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
             TPosixThread TPosixThread(const TPosixThread&)
            TPosixThread& operator=(const TPosixThread&)

Author: Fons Rademakers 02/07/97
Last update: root/thread:$Name: $:$Id: TPosixThread.cxx,v 1.6 2004/07/08 11:52:32 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *