From ef31893067f936cec512a9ab2edc4c95b5bc893a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 22 Feb 2010 20:57:25 +0000 Subject: minor tweak --- Process.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Process.h') diff --git a/Process.h b/Process.h index 620eb75a..c8019d7d 100644 --- a/Process.h +++ b/Process.h @@ -45,6 +45,10 @@ in the source distribution for its full text. #define PROCESS_COMM_LEN 300 +#ifndef Process_isThread +#define Process_isThread(process) (process->pid != process->tgid || process->m_size == 0) +#endif + typedef enum ProcessField_ { PID = 1, COMM, STATE, PPID, PGRP, SESSION, TTY_NR, TPGID, FLAGS, MINFLT, CMINFLT, MAJFLT, CMAJFLT, UTIME, STIME, CUTIME, CSTIME, PRIORITY, NICE, ITREALVALUE, STARTTIME, VSIZE, RSS, RLIM, STARTCODE, ENDCODE, -- cgit v1.2.3