Home | C-Bits Package Documentation | Project Page |
00001 /* ==================================================================== 00002 * The CBITS Software License, Version 1.0 00003 * 00004 * Copyright (c) 2002-2003 Bruce Lowery 00005 * All rights reserved 00006 * 00007 * Redistribution and use of this software, in source and binary forms, 00008 * with or without modification, are permitted provided that the above 00009 * copyright notice, this paragraph, and the following paragraph are 00010 * retained in each source code file. 00011 * 00012 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 00013 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00014 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00015 * DISCLAIMED. IN NO EVENT SHALL BRUCE LOWERY OR OTHER CONTRIBUTORS 00016 * TO THE CBITS LIBRARY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00017 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00018 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 00019 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00020 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00021 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00022 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00023 * SUCH DAMAGE. 00024 * ==================================================================== 00025 */ 00026 #ifndef __CALLBACK_TIMER_WIN32_H__ 00027 #define __CALLBACK_TIMER_WIN32_H__ 00028 00029 #include <cbits/CallbackTimer.h> 00030 00031 #ifdef WIN32 00032 #include <winnt.h> 00033 #endif 00034 00035 #ifdef BUILD_DLL 00036 #define EXPORT __declspec(dllexport) 00037 #else 00038 #define EXPORT 00039 #endif 00040 00041 00042 namespace cbits 00043 { 00044 00049 class EXPORT CallbackTimer_WIN32 : public virtual CallbackTimer 00050 { 00051 00052 public: 00056 CallbackTimer_WIN32 00057 ( 00058 const Type t, 00059 const long tm, 00060 CallbackTimerListener& cl 00061 ); 00062 00063 00067 virtual ~CallbackTimer_WIN32(); 00068 00069 00070 protected: 00071 virtual const bool impl_lock_obj() const; 00072 virtual const bool impl_unlock_obj() const; 00073 virtual const bool impl_signal(); 00074 virtual const bool impl_wait( const long msec ); 00075 00076 private: 00077 #ifdef WIN32 00078 #endif 00079 }; 00080 00081 }; 00082 00083 #endif 00084 00085 /* 00086 * $Id: CallbackTimer_WIN32.h,v 1.5 2002/10/08 14:59:21 brulow Exp $ 00087 * 00088 * History: (Add nothing manually below) 00089 * ----------------------------------------------------------------------- 00090 * 00091 * $Log: CallbackTimer_WIN32.h,v $ 00092 * Revision 1.5 2002/10/08 14:59:21 brulow 00093 * Improve comments 00094 * 00095 * Revision 1.4 2002/10/07 21:07:40 brulow 00096 * Add/improve documentation 00097 * 00098 * Revision 1.3 2002/10/07 02:55:01 brulow 00099 * Add SignalObject to thread pkg 00100 * 00101 * 00102 */
|
|