This is an archive of the discontinued LLVM Phabricator instance.

Use Timeout<> in the Listener class
ClosedPublic

Authored by labath on Nov 25 2016, 9:01 AM.

Details

Summary

Communication classes use the Timeout<> class to specify the timeout. Listener
class was converted to chrono some time ago, but it used a different meaning for
a timeout of zero (Listener: infinite wait, Communication: no wait). Instead,
Listener provided separate functions which performed a non-blocking event read.

This converts the Listener class to the new Timeout class, to improve
consistency. It also allows us to get merge the different GetNextEvent* and
WaitForEvent
* functions into one. No functional change intended.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 79313.Nov 25 2016, 9:01 AM
labath retitled this revision from to Use Timeout<> in the Listener class.
labath updated this object.
labath added reviewers: jingham, clayborg, zturner.
labath added a subscriber: lldb-commits.
clayborg accepted this revision.Nov 29 2016, 2:52 PM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Nov 29 2016, 2:52 PM
This revision was automatically updated to reflect the committed changes.