Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312458

Summary: [TMF] Problem with end-of-request when processing synthetic events
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: patrick.tasse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 301615    
Attachments:
Description Flags
Null event patch fchouinard: iplog-

Description Francois Chouinard CLA 2010-05-11 11:59:21 EDT
Events queues are used (in a Producer/Consumer model) to pass data asynchronously between the various application components/layers. Unfortunately, null objects can't be queued by the Producer to indicate to the Consumer that the request is completed.

This was one of the causes of a problem with the LTTng synthetic event provider being stuck waiting for an end of a request that never came.

The solution is to introduce a NullEvent that acts as EOF. Due to the use of generics in TmfDataProvider, this has some impacts here and there...
Comment 1 Francois Chouinard CLA 2010-05-11 11:59:53 EDT
Created attachment 167951 [details]
Null event patch
Comment 2 Francois Chouinard CLA 2010-05-11 12:02:12 EDT
Patch committed.
Comment 3 Francois Chouinard CLA 2010-07-08 10:17:17 EDT
Released in a past delivery.