⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runnable.h

📁 linux下的终端管理工具源码
💻 H
字号:
/***************************************************************************//*                                                                         *//* Copyright (c) 2005, 2006 2X Software Ltd, http://www.2X.com., NoMachine *//*                                                                         *//* NXCOMP, NX protocol compression and NX extensions to this software      *//* are copyright of Nomachine. Redistribution and use of the present       *//* software is allowed according to terms specified in the file LICENSE    *//* which comes in the source distribution.                                 *//*                                                                         *//* NX and NoMachine are trademarks of Medialogic S.p.A.                    *//*                                                                         *//* 2X is a trademark of 2X Software Ltd.                                   *//*                                                                         *//* All rights reserved.                                                    *//*                                                                         *//***************************************************************************/#ifndef Runnable_H#define Runnable_H#include <sys/types.h>#include <stdlib.h>#include <unistd.h>#include <signal.h>#include "Timestamp.h"class Runnable{  protected:  Runnable()  {  }  ~Runnable()  {  }  static int setTimer(const T_timestamp timeout);  static int resetTimer();  static void handleTimer(int signal);  static int setValue(char *&recipient, const char *value);  static void resetValue(char *&recipient)  {    delete [] recipient;    recipient = NULL;  }  private:  typedef struct  {    struct sigaction action_;    struct itimerval value_;    int              count_;  } T_runnable_timer;  static T_runnable_timer *timer_;};#endif /* Runnable_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -