1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
5 >How to request background computation</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10 TITLE="Linux Trace Toolkit Viewer Developer Guide"
11 HREF="index.html"><LINK
13 TITLE="Linux Trace Toolkit Viewer Graphical Module Tutorial"
16 TITLE="The dynamic part of a module : the viewer"
19 TITLE="How to handle events and use the graphical trace reading service"
20 HREF="x84.html"></HEAD
31 SUMMARY="Header navigation table"
40 >Linux Trace Toolkit Viewer Developer Guide</TH
56 >Chapter 3. Linux Trace Toolkit Viewer Graphical Module Tutorial</TD
77 >3.4. How to request background computation</A
80 > You will also notice the presence of a request_background_data() called in the
81 constructor. This function, in eventhooks.c, does verify for the presence of the
82 state information that could be precomputed by the main window background
83 computation. If it has not been precomputed, we ask for a computation and show
84 partial data. We also register a hook that will be called (notified) by the main
85 window when the requested data will become ready, so the viewer can update
86 itself with the new data. If no partial information would have made sense in a
87 particular viewer, one could choose to shown a "waiting for computation" message
88 while waiting for the notification. See lttvwindow/lttvwindowtraces.h for the API
89 of the background requests.
97 SUMMARY="Footer navigation table"
136 >The dynamic part of a module : the viewer</TD
150 >How to handle events and use the graphical trace reading service</TD