]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: improve taking ownership in fifo_reader_thread
authorKen Brown <kbrown@cornell.edu>
Sat, 11 Jul 2020 18:52:55 +0000 (14:52 -0400)
committerKen Brown <kbrown@cornell.edu>
Thu, 16 Jul 2020 19:59:53 +0000 (15:59 -0400)
commit6b8a8294966316f6e044e78f76579a18a3e9c173
tree9ebd20aa3dd56925a9a01d7d09171ad7907a0c4c
parent1c0cf5f4f9b21f2e840109dfa4248886038b96dd
Cygwin: FIFO: improve taking ownership in fifo_reader_thread

When a reader takes ownership in fifo_reader_thread, it now goes
directly to the part of the main loop that listens for a connection.
Previously it went back to the beginning of the loop.

Also, if the reader has to delay taking ownership because the previous
owner has not finished updating the shared fifo_client handlers, it
now checks to see if cancel_evt has been set.  Previously it might
have had to spin its wheels unnecessarily only to eventually find that
its thread had been canceled.
winsup/cygwin/fhandler_fifo.cc
This page took 0.029771 seconds and 5 git commands to generate.