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

Bug 323867

Summary: Need a way to restart an event loop in C TCF agent
Product: [Tools] TCF Reporter: Ed Swartz <ed.swartz>
Component: CoreAssignee: Project Inbox <dsdp.tm.tcf-inbox>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: enhancement    
Priority: P3 CC: cdtdoug, eugene
Version: unspecified   
Target Milestone: 0.4.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ed Swartz CLA 2010-08-27 15:41:00 EDT
I was experimenting and had a need to stop and restart the TCF event loop.  I invoked "cancel_event_loop", for instance, and then tried re-running "run_event_loop".

But in events.c, the "process_events" variable is a static int, initialized to 1.  If you invoke "cancel_event_loop", this sets it to zero.  But there's no way to restore the value, thus the next time you call "run_event_loop", it exits immediately.

Should run_event_loop initialize "process_events" to 1, or should there be a new function that will restore this variable?
Comment 1 Eugene Tarassov CLA 2010-08-27 16:34:26 EDT
Fixed.
Now run_event_loop() initializes "process_events" to 1.
Thanks!
Comment 2 Doug Schaefer CLA 2011-05-17 10:48:37 EDT
Moving bugs to new home for IP log.
Comment 3 Martin Oberhuber CLA 2013-06-05 06:25:50 EDT
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3