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
chxavthread.cpp
Package: helix.src.0812.rar [view]
Upload User: zhongxx05
Upload Date: 2007-06-06
Package Size: 33641k
Code Size: 1k
Category:
Symbian
Development Platform:
C/C++
- /*============================================================================*
- *
- * (c) 1995-2002 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *============================================================================*/
- /*
- Helpers for 'pumping' active object requests
- */
- // Symbian includes...
- #include <e32base.h>
- #include <e32std.h>
- // Helix includes...
- #include "hxassert.h"
- // Other includes...
- #include "chxavthread.h"
- ////////////////////////////////////////////
- //
- // service next active object request for this thread,
- // blocking if necessary
- //
- void CHXAvThread::WaitAndProcessNextRequest()
- {
- User::WaitForAnyRequest();
- TInt errorIgnored;
- TBool bAtLeastOne = CActiveScheduler::RunIfReady(errorIgnored, 0);
- }
- ////////////////////////////////////////////
- //
- // service outstanding active object requests
- // for this thread; do not block
- //
- void CHXAvThread::ProcessPendingRequests()
- {
- //
- // make sure there are outstanding requests before
- // we wait so we are guarenteed not to block
- //
- while( 0 != RThread().RequestCount() )
- {
- WaitAndProcessNextRequest();
- }
- }