From 44c0fc2820bb13018b200d3ec990c30cdd2a08cd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Nov 2015 12:48:15 +0200 Subject: Add process::try_wait() for non-blocking wait --- butl/process | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'butl/process') diff --git a/butl/process b/butl/process index bbd0162..6077ad3 100644 --- a/butl/process +++ b/butl/process @@ -75,6 +75,12 @@ namespace butl bool wait (); + // Return true if the process has already terminated in which case + // the argument is set to the result of wait(). + // + bool + try_wait (bool&); + ~process () {if (id != 0) wait ();} // Move constructible-only type. -- cgit v1.1