events req servicing v2, with background computation, mod
[lttv.git] / ltt / branches / poly / doc / developer / lttvwindow_events_delivery.txt
index de92dfa2b36ddfe9f05e3f51f489f2f6cff79314..252f4c200865af2d48b7050cd3fa8e2ebee839cb 100644 (file)
@@ -210,6 +210,29 @@ complete the servicing after a "stop" action.
 
 
 
+Tab change
+
+If a tab change occurs, we still want to do background processing.
+Events requests must be stocked in a list located in the same scope than the
+traceset context. Right now, this is tab scope. All functions called from the
+request servicing function must _not_ use the current_tab concept, as it may
+change. The idle function must the take a tab, and not the main window, as
+parameter.
+
+If a tab is removed, its associated idle events requests servicing function must
+also be removed.
+
+
+
+Idle function (lttvwindow_process_pending_requests)
+
+The idle function must return FALSE to be removed from the idle functions when
+no more events requests are pending. Otherwise, it returns TRUE. It will service
+requests until there is no more request left.
+
+
+
+
 Implementation
 
 
@@ -434,7 +457,10 @@ occur often. The solution to it would be to save one state per priority.
 
 Weaknesses
 
-- None (nearly?) :)
+- There is a possibility that we must use seek if more than one interruption
+  occurs, i.e. low priority interrupted by addition of high priority, and then
+  high priority interrupted. The seek will be necessary for the low priority.
+  It could be a good idea to keep one saved_state per priority ?
 
 
 Strengths
This page took 0.033617 seconds and 4 git commands to generate.