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
BailDetector.h
Upload User: kellyonhid
Upload Date: 2013-10-12
Package Size: 932k
Code Size: 1k
Category:
3D Graphic
Development Platform:
Visual C++
- // BailDetector.cc interface for peeking at events,
- // and bailing out of long operations
- // created 2/5/99 magi@cs
- #ifndef _BAILDETECTOR_H_
- #define _BAILDETECTOR_H_
- #include <tk.h>
- class BailDetector
- {
- public:
- BailDetector();
- ~BailDetector();
- static bool bail (void);
- bool operator() (void) { return bail(); };
- private:
- static bool s_bBail; // shared between bail detectors on stack
- static int s_iBailDepth; // keep track of when contstructor is master
- // in chain of several nested bail detectors
- static bool s_bBailNoticed; // check if bail was acted on
- static int s_iLastChecked; // time events last pumped
- static Tk_RestrictAction
- filterproc (ClientData clientData, XEvent* eventPtr);
- };
- int PlvBailDetectCmd(ClientData clientData, Tcl_Interp *interp,
- int argc, char *argv[]);
- #endif // _BAILDETECTOR_H_