www.pudn.com > DVBPlayer.rar > thread.h, change:2004-07-15,size:583b


#ifndef THREAD_H 
#define THREAD_H 
 
#include "config.h" 
 
 
typedef void (*thread_function)(void * arg); 
 
 
class Thread { 
 
public: 
    virtual ~Thread(){} 
 
 
    virtual bool Create(thread_function function, void* arg,  
                        bool detach = false) = 0; 
    virtual void Destroy() = 0; 
    virtual void Suspend() = 0; 
    virtual void Resume() = 0; 
    virtual void Join() = 0; 
 
    virtual uint32 GetPriority() const = 0; 
    virtual uint32 SetPriority(uint32 priority) = 0; 
 
    static Thread* CreateThread(); 
}; 
 
 
 
#endif /* THREAD_H */