Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323867 - Need a way to restart an event loop in C TCF agent
Summary: Need a way to restart an event loop in C TCF agent
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.4.0   Edit
Assignee: Project Inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 15:41 EDT by Ed Swartz CLA
Modified: 2013-06-05 07:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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