* Wait for all the awaited computations to be over.
*/
-gint background_ready(void *hook_data, void *call_data)
+static gint background_ready(void *hook_data, void *call_data)
{
ControlFlowData *control_flow_data = (ControlFlowData *)hook_data;
LttvTrace *trace = (LttvTrace*)call_data;
/* Request background computation. Verify if it is in progress or ready first.
* Only for each trace in the tab's traceset.
*/
-void request_background_data(ControlFlowData *control_flow_data)
+static void request_background_data(ControlFlowData *control_flow_data)
{
LttvTracesetContext * tsc =
lttvwindow_get_traceset_context(control_flow_data->tab);
* information. Happens when two viewers ask for it before servicing
* starts.
*/
- lttvwindowtraces_background_request_remove(trace, "state");
- lttvwindowtraces_background_request_queue(trace,
- "state");
+ if(!lttvwindowtraces_background_request_find(trace, "state"))
+ lttvwindowtraces_background_request_queue(trace, "state");
lttvwindowtraces_background_notify_queue(control_flow_data,
trace,
ltt_time_infinite,
hashed_process_data = processlist_get_process_data(process_list,
pid_in,
- process->cpu,
+ ltt_tracefile_num(tfc->tf),
&birth,
tfc->t_context->index);
if(hashed_process_data == NULL)
processlist_add(process_list,
drawing,
pid_in,
- process->cpu,
+ ltt_tracefile_num(tfc->tf),
process->ppid,
&birth,
tfc->t_context->index,
&hashed_process_data->next_good_time);
}
}
- }
+ } else
+ g_warning("Cannot find pin_in in schedchange %u", pid_in);
}
return 0;