diff options
author | Christopher Faylor <me@cgf.cx> | 2000-05-18 21:30:30 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-05-18 21:30:30 +0000 |
commit | f343a326d3da43f8e3c73494e412b7e123c216fc (patch) | |
tree | 3e67c1ebce041fe36a4607451fbfcc9bff96d022 /winsup | |
parent | f43932615d05b3a2ee85885693410a3cb62c31a0 (diff) | |
download | cygnal-f343a326d3da43f8e3c73494e412b7e123c216fc.tar.gz cygnal-f343a326d3da43f8e3c73494e412b7e123c216fc.tar.bz2 cygnal-f343a326d3da43f8e3c73494e412b7e123c216fc.zip |
* Makefile.in: Remove external.h dependency.
* dcrt0.cc (sigthread::init): Move here from sigproc.h.
* sigproc.h (sigthread): Move init to dcrt0.cc.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/Makefile.in | 2 | ||||
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 7 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.h | 6 |
4 files changed, 15 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e0b2dfd6a..e04338eb8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +Thu May 18 17:28:19 2000 Christopher Faylor <cgf@cygnus.com> + + * 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 <cgf@cygnus.com> * select.cc (thread_pipe): Add paranoid check to ensure thread diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index b04b79a0c..9fdbe6687 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 6d5e8dbd7..b59f2d183 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 2a55b12f7..d850ec923 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 |