You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.4 KiB
C++
89 lines
1.4 KiB
C++
//:Header:36, "sys_CThread", 3b93fb4c
|
|
//
|
|
// File: sys_thread.h
|
|
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// Generic Thread Class
|
|
//
|
|
//:-----------------------------------------------------------------------------
|
|
|
|
#if !defined(SYS_THREAD_INCLUDED)
|
|
#define SYS_THREAD_INCLUDED
|
|
|
|
//:> +-------------------------------------+
|
|
//:>------------------| sys_CThread Class Declaration |-------------------
|
|
//:> +-------------------------------------+
|
|
//:Class
|
|
class sys_CThread
|
|
{
|
|
|
|
public:
|
|
|
|
//::2
|
|
// +--------------+
|
|
// | Destructor |
|
|
// +--------------+
|
|
|
|
virtual ~sys_CThread();
|
|
|
|
//::6
|
|
// +----------+
|
|
// | Main() |
|
|
// +----------+
|
|
|
|
virtual int Main();
|
|
|
|
//::4
|
|
// +------------+
|
|
// | Resume() |
|
|
// +------------+
|
|
|
|
void Resume();
|
|
|
|
//::3
|
|
// +-------------+
|
|
// | Suspend() |
|
|
// +-------------+
|
|
|
|
void Suspend();
|
|
|
|
//::5
|
|
// +---------------+
|
|
// | Terminate() |
|
|
// +---------------+
|
|
|
|
void Terminate();
|
|
|
|
protected:
|
|
|
|
//::8
|
|
// +---------------+
|
|
// | Constructor |
|
|
// +---------------+
|
|
|
|
sys_CThread();
|
|
|
|
// +---------------+
|
|
// | Create() |
|
|
// +---------------+
|
|
|
|
void Create();
|
|
|
|
private:
|
|
|
|
//:=3
|
|
// +-------------+
|
|
// | m_hThread |
|
|
// +-------------+
|
|
|
|
void * m_hThread;
|
|
|
|
};
|
|
#endif // SYS_THREAD_INCLUDED
|
|
|