- /*
- * Copyright 1995, 1996 Perforce Software. All rights reserved.
- *
- * This file is part of Perforce - the FAST SCM System.
- */
- /*
- * Signaler.h - catch ^C and delete temp files
- *
- * A single Signaler is declared globally.
- *
- * Public methods:
- *
- * Signaler::Block() -- don't catch the signal until Catch()
- * Signaler::Catch() -- catch and handle SIGINT
- * Signaler::OnIntr() -- call a designated function on SIGINT
- * Signaler::DeleteOnIntr() -- undo OnIntr() call
- *
- * Signaler::Intr() -- call functions registered by OnIntr()
- *
- * Requires cooperation from the TempFile objects to delete files.
- */
- # ifdef OS_NT
- typedef void *HANDLE;
- # endif
- struct SignalMan;
- typedef void (*SignalFunc)( void *ptr );
- class Signaler {
- public:
- Signaler();
- void Block();
- void Catch();
- void Disable();
- void OnIntr( SignalFunc callback, void *ptr );
- void DeleteOnIntr( void *ptr );
- void Intr();
- private:
- SignalMan *list;
- int disable;
- # ifdef OS_NT
- HANDLE hmutex;
- # endif // OS_NT
- } ;
- extern Signaler signaler;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 7893 | Johan Nilsson | OFFLINE CHANGELIST 10 - SUBMITTED ON 2011/03/23 11:18:27 Upgrade project files to VS2010... and switching to msbuild for the entire project. Retargeted everything to .NET4 Client Profile for the time being, due to VS2010 C++ limitations (can't target anything other than 4.0 without complicating the setup too much). Shouldn't be too hard to retarget later if push comes to shove. Added VS2010 P4API stuff directly inside this project also to make things easier to get up and running for the moment. Removed old static P4API libraries. ____________________________________________________________ OFFLINE CHANGELIST 9 - SUBMITTED ON 2011/03/22 07:35:31 Converted to VS2010 « |
14 years ago |