]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: allow fc_handler list to grow dynamically
authorKen Brown <kbrown@cornell.edu>
Thu, 2 Apr 2020 17:47:18 +0000 (13:47 -0400)
committerKen Brown <kbrown@cornell.edu>
Fri, 8 May 2020 10:32:00 +0000 (06:32 -0400)
commitc76ded2ca0bb6136205e69caa073bf19944ae509
treed882de5eac975f6f14f64c7dadc71cedb761d026
parent606baf5566d683ac68e3414c457d124c7c7bdcc5
Cygwin: FIFO: allow fc_handler list to grow dynamically

Make fc_handler a pointer to malloc'd memory instead of a fixed-size
array.  The size is now a new data member 'shandlers'.  Call realloc
in add_client_handler if we need to grow the array.

free fc_handler in close.  As long as we're touching that code, also
remove an unneeded lock.
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_fifo.cc
This page took 0.027316 seconds and 5 git commands to generate.