- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
THREADS.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- // threads.h : header file
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1998 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- //
- // This sample application is derived from the Mutex application
- // distributed with Jeffrey Richter's "Advanced Windows" programming book
- // (Microsoft Press). See the book for more information about Win32
- // programming topics, including thread synchronization.
- class CMutexesDlg;
- class CExampleThread : public CWinThread
- {
- DECLARE_DYNCREATE(CExampleThread)
- protected:
- CExampleThread();
- public:
- CMutexesDlg* m_pOwner;
- BOOL m_bDone;
- void SetOwner(CMutexesDlg* pOwner) { m_pOwner = pOwner; };
- };
- /////////////////////////////////////////////////////////////////////////////
- // CCounterThread thread
- class CCounterThread : public CExampleThread
- {
- DECLARE_DYNCREATE(CCounterThread)
- protected:
- CCounterThread(); // protected constructor used by dynamic creation
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCounterThread)
- public:
- virtual BOOL InitInstance();
- virtual int Run();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CCounterThread();
- // Generated message map functions
- //{{AFX_MSG(CCounterThread)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CDisplayThread thread
- class CDisplayThread : public CExampleThread
- {
- DECLARE_DYNCREATE(CDisplayThread)
- protected:
- CDisplayThread(); // protected constructor used by dynamic creation
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDisplayThread)
- public:
- virtual BOOL InitInstance();
- virtual int Run();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CDisplayThread();
- // Generated message map functions
- //{{AFX_MSG(CDisplayThread)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////