From 243a041bd0164aa62813ac4ba5a1a02eb2db455b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 3 Nov 2001 03:32:27 +0000 Subject: * dll_init.h (class dll_list): Reorder functions to avoid compiler "can't inline" warnings. * security.h (class cygsid): Ditto. * sigproc.cc (get_proc_lock): Ditto. * sigproc.h (class sigframe): Ditto. * sync.h (class muto): Ditto. * fhandler.h (fhandler_base::get_guard): Actually MAKE virtual as previously indicated. * pipe.cc (make_pipe): Remove extraneous set_errno. * syscalls.cc (_open): Ditto. * select.cc (peek_pipe): Need to check that there is still something to read from the pipe after acquiring the mutex since another process/thread could have eaten the input before we got to acquiring the lock. (Thanks to Nick Duffek for this inspiration.) --- winsup/cygwin/dll_init.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'winsup/cygwin/dll_init.h') diff --git a/winsup/cygwin/dll_init.h b/winsup/cygwin/dll_init.h index a5b33d572..bc9687bf7 100644 --- a/winsup/cygwin/dll_init.h +++ b/winsup/cygwin/dll_init.h @@ -73,12 +73,6 @@ public: void detach (dll *); void init (); void load_after_fork (HANDLE, dll *); - dll *istart (dll_type t) - { - hold_type = t; - hold = &start; - return inext (); - } dll *inext () { while ((hold = hold->next)) @@ -86,6 +80,12 @@ public: break; return hold; } + dll *istart (dll_type t) + { + hold_type = t; + hold = &start; + return inext (); + } }; extern dll_list dlls; -- cgit v1.2.3