* Methods to synchronize process list *
*****************************************************************************/
-static __inline__ guint get_cpu_number_from_name(GQuark name);
+//static __inline__ guint get_cpu_number_from_name(GQuark name);
/* Enumeration of the columns */
enum
process_list->number_of_process = 0;
process_list->cell_height_cache = -1;
- process_list->current_process_info = NULL;
process_list->current_hash_data = NULL;
/* Create the Process list */
gtk_list_store_remove (process_list->list_store, &iter);
- if(process_info == process_list->current_process_info)
- process_list->current_process_info = NULL;
- if(hashed_process_data == process_list->current_hash_data)
- process_list->current_hash_data = NULL;
+ if(hashed_process_data == process_list->current_hash_data[process_info->cpu])
+ process_list->current_hash_data[process_info->cpu] = NULL;
return TRUE; /* remove the element from the hash table */
}
PROCESS_COLUMN, name,
PID_COLUMN, pid,
PPID_COLUMN, ppid,
- CPU_COLUMN, get_cpu_number_from_name(cpu),
+ CPU_COLUMN, cpu,
BIRTH_S_COLUMN, birth->tv_sec,
BIRTH_NS_COLUMN, birth->tv_nsec,
TRACE_COLUMN, trace_num,
g_hash_table_remove(process_list->process_hash,
&process_info);
- if(hashed_process_data == process_list->current_hash_data) {
- process_list->current_process_info = NULL;
- process_list->current_hash_data = NULL;
+ if(hashed_process_data == process_list->current_hash_data[cpu]) {
+ process_list->current_hash_data[cpu] = NULL;
}
process_list->number_of_process--;
__inline__ gint processlist_get_pixels_from_data( ProcessList *process_list,
- ProcessInfo *process_info,
HashedProcessData *hashed_process_data,
guint *y,
guint *height)
}
+#if 0
static __inline__ guint get_cpu_number_from_name(GQuark name)
{
const gchar *string;
return cpu;
}
-
+#endif //0