home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ocl150a.zip
/
OCL
/
Samples
/
Critics
/
Source
/
Critics.hpp
< prev
Wrap
C/C++ Source or Header
|
1996-11-12
|
780b
|
51 lines
// OCL Sample
// Critics.hpp
#define INCL_VIO
#include <ocl.hpp>
#include <OCriticalSec.hpp>
#include <OThread.hpp>
typedef class Thread *pThread;
class Thread
: virtual public OCLObject
{
protected:
PSZ threadName;
ULONG count;
USHORT line;
public:
OThread<Thread> paint;
Thread(PSZ name, USHORT threadRow);
virtual ~Thread();
virtual PSZ isOfType() const;
virtual void paintfunc();
};
typedef class CriticalThread *pCriticalThread;
class CriticalThread
: public Thread
{
private:
OCriticalSec critical;
public:
CriticalThread(USHORT threadRow);
virtual ~CriticalThread();
virtual PSZ isOfType() const;
virtual void paintfunc();
};
// end of source