]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: make opening a writer more robust
authorKen Brown <kbrown@cornell.edu>
Tue, 17 Mar 2020 18:14:47 +0000 (14:14 -0400)
committerKen Brown <kbrown@cornell.edu>
Fri, 8 May 2020 10:32:00 +0000 (06:32 -0400)
commit9ee8fdf2b3a371cb14fb902a8c9aab76dd60f4e2
treeee9f89a5f876d16fa14f2f584c90fc061a89196c
parent301454f1320bf1cfaf826fcabf5556cb20ee642a
Cygwin: FIFO: make opening a writer more robust

- Make read_ready a manual-reset event.

- Signal read_ready in open instead of in the listen_client_thread.

- Don't reset read_ready when the listen_client thread terminates;
  instead do it in close().

- Rearrange open and change its error handling.

- Add a wait_open_pipe method that waits for a pipe instance to be
  available and then calls open_pipe.  Use it when opening a writer if
  we can't connect immediately.  This can happen if the system is
  heavily loaded and/or if many writers are trying to open
  simultaneously.
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_fifo.cc
This page took 0.027581 seconds and 5 git commands to generate.