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
Queue.h
Package: LegendOfMir2_Server020418.zip [view]
Upload User: szopptop
Upload Date: 2013-04-23
Package Size: 1047k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
Visual C++
- #pragma once
- #include "../def/_orzex/queue.h"
- #include "../def/_orzex/syncobj.h"
- class CWHQueue : public CQueue< BYTE >, public CIntLock
- {
- public:
- virtual ~CWHQueue()
- {
- ClearAll();
- }
- bool PushQ( BYTE *lpbtQ )
- {
- Lock();
- bool bRet = Enqueue( lpbtQ );
- Unlock();
- return bRet;
- }
- BYTE * PopQ()
- {
- Lock();
- BYTE *pData = Dequeue();
- Unlock();
- return pData;
- }
- };
- /*
- #define QUEUE_MAX 1000000
- class CWHQueue : public CIntLock
- {
- protected:
- UINT m_btCount;
- UINT m_btQPushPos;
- UINT m_btQPopPos;
- BYTE *m_lpCircularQ[QUEUE_MAX];
- // CRITICAL_SECTION m_cs;
- public:
- CWHQueue();
- ~CWHQueue();
- BOOL PushQ(BYTE *lpbtQ);
- BYTE *PopQ();
- __inline UINT GetCurPushPos() { return m_btQPushPos; }
- __inline UINT GetCurPopPos() { return m_btQPopPos; }
- __inline UINT GetCount() { return m_btCount; }
- };
- */