From 1f309aa4d97af235474e2a12cc1167b7c4647959 Mon Sep 17 00:00:00 2001 From: cgf Date: Thu, 18 May 2000 21:30:30 +0000 Subject: [PATCH] * Makefile.in: Remove external.h dependency. * dcrt0.cc (sigthread::init): Move here from sigproc.h. * sigproc.h (sigthread): Move init to dcrt0.cc. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/Makefile.in | 2 +- winsup/cygwin/dcrt0.cc | 7 +++++++ winsup/cygwin/sigproc.h | 6 +----- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e0b2dfd6a2..e04338eb8b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +Thu May 18 17:28:19 2000 Christopher Faylor + + * Makefile.in: Remove external.h dependency. + * dcrt0.cc (sigthread::init): Move here from sigproc.h. + * sigproc.h (sigthread): Move init to dcrt0.cc. + Thu May 18 01:28:02 2000 Christopher Faylor * select.cc (thread_pipe): Add paranoid check to ensure thread diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index b04b79a0c1..9fdbe6687b 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -283,7 +283,7 @@ environ.o: $(WINSUP_H) errno.o: $(WINSUP_H) exceptions.o: $(WINSUP_H) include/exceptions.h sync.h autoload.h exec.o: $(WINSUP_H) -external.o: $(WINSUP_H) external.h +external.o: $(WINSUP_H) fcntl.o: $(WINSUP_H) fhandler.o: $(WINSUP_H) fhandler_console.o: $(WINSUP_H) diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 6d5e8dbd77..b59f2d1833 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -558,6 +558,13 @@ ResourceLocks _reslock NO_COPY; MTinterface _mtinterf NO_COPY; #endif +void +sigthread::init (const char *s) +{ + lock = new_muto (FALSE, s); + id = GetCurrentThreadId (); +} + /* Take over from libc's crt0.o and start the application. Note the various special cases when Cygwin DLL is being runtime loaded (as opposed to being link-time loaded by Cygwin apps) from a non diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index 2a55b12f70..d850ec9239 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -40,11 +40,7 @@ struct sigthread DWORD frame; muto *lock; sigthread () : id (0), frame (0), lock (0) {} - void init (const char *s) - { - lock = new_muto (FALSE, s); - id = GetCurrentThreadId (); - } + void init (const char *s); }; class sigframe -- 2.11.0