4 Star 8 Fork 0

Gitee 极速下载 / htop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/htop-dev/htop
克隆/下载
ProcessTable.h 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef HEADER_ProcessTable
#define HEADER_ProcessTable
/*
htop - ProcessTable.h
(C) 2004,2005 Hisham H. Muhammad
Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
#include <stdbool.h>
#include <sys/types.h>
#include "Hashtable.h"
#include "Machine.h"
#include "Object.h"
#include "Process.h"
#include "Table.h"
typedef struct ProcessTable_ {
Table super;
Hashtable* pidMatchList;
unsigned int totalTasks;
unsigned int runningTasks;
unsigned int userlandThreads;
unsigned int kernelThreads;
} ProcessTable;
/* Implemented by platforms */
ProcessTable* ProcessTable_new(Machine* host, Hashtable* pidMatchList);
void ProcessTable_delete(Object* cast);
void ProcessTable_goThroughEntries(ProcessTable* this);
void ProcessTable_init(ProcessTable* this, const ObjectClass* klass, Machine* host, Hashtable* pidMatchList);
void ProcessTable_done(ProcessTable* this);
extern const TableClass ProcessTable_class;
static inline void ProcessTable_add(ProcessTable* this, Process* process) {
Table_add(&this->super, &process->super);
}
Process* ProcessTable_getProcess(ProcessTable* this, pid_t pid, bool* preExisting, Process_New constructor);
static inline Process* ProcessTable_findProcess(ProcessTable* this, pid_t pid) {
return (Process*) Table_findRow(&this->super, pid);
}
#endif
C
1
https://gitee.com/mirrors/htop.git
git@gitee.com:mirrors/htop.git
mirrors
htop
htop
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891