]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
g-socket.ads (Abort_Selector): Clarify documentation.
authorThomas Quinot <quinot@adacore.com>
Mon, 20 Apr 2009 08:45:04 +0000 (08:45 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 20 Apr 2009 08:45:04 +0000 (10:45 +0200)
2009-04-20  Thomas Quinot  <quinot@adacore.com>

* g-socket.ads (Abort_Selector): Clarify documentation.

From-SVN: r146373

gcc/ada/ChangeLog
gcc/ada/g-socket.ads

index 99f5be04c5ac538bdb527942eb5cd52e4ce45e24..ce73813cf748bd9e3332a2bc665dab1391cefc74 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-20  Thomas Quinot  <quinot@adacore.com>
+
+       * g-socket.ads (Abort_Selector): Clarify documentation.
+
 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
 
        * opt.ads (Inspector_Mode): Update documentation of this flag.
index 009f5672456fe11691437ed00a790ee98c9a581a..882a31a82310993cdb554400c1c8c7cc4a65f5db 100644 (file)
@@ -1038,13 +1038,15 @@ package GNAT.Sockets is
    --  that it does not watch for exception events. Note that on some
    --  platforms it is kept process blocking on purpose. The timeout parameter
    --  allows the user to have the behaviour he wants. Abort_Selector allows
-   --  to abort safely a Check_Selector that is blocked forever. A special
-   --  file descriptor is opened by Create_Selector and included in each call
-   --  to Check_Selector. Abort_Selector causes an event to occur on this
-   --  descriptor in order to unblock Check_Selector. The user must call
-   --  Close_Selector to discard this special file. A reason to abort a select
-   --  operation is typically to add a socket in one of the socket sets when
-   --  the timeout is set to forever.
+   --  to safely abort a blocked Check_Selector call. A special socket
+   --  is opened by Create_Selector and included in each call to
+   --  Check_Selector. Abort_Selector causes an event to occur on this
+   --  descriptor in order to unblock Check_Selector. Note that each call to
+   --  Abort_Selector will cause exactly one call to Check_Selector to return
+   --  with Aborted status. The special socket created by Create_Selector is
+   --  closed when Close_Selector is called.
+   --  A typical case where it is useful to abort a Check_Selector operation is
+   --  the situation where a change to the monitored sockets set must be made.
 
    procedure Create_Selector (Selector : out Selector_Type);
    --  Create a new selector