diff options
author | rbcollins <rbcollins> | 2001-09-30 13:56:37 +0000 |
---|---|---|
committer | rbcollins <rbcollins> | 2001-09-30 13:56:37 +0000 |
commit | 6f0cb845d96e289c7a79be32562a605b9a33acbb (patch) | |
tree | fe6f46385718ea9b4af2edc95150c0e34fca20cb /winsup/cygwin/cygserver_shm.cc | |
parent | f2d986607e1da33cb0dd6a534fbdb96fe0bd13a6 (diff) | |
download | gdb-6f0cb845d96e289c7a79be32562a605b9a33acbb.tar.gz |
Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
* Makefile.in: Add cygserver_process.o to cygserver.exe.
* cygserver.cc: Include signal.h and cygwin_version.h.
Define debug_printf as a macro.
Define DEBUG to a value.
(client_request_attach_tty::serve): Add beginning of process cache support.
Change from #ifdef DEBUG to work with new DEBUG style.
(client_request_get_version::serve): Add beginning of process cache support.
(class server_request): New prototype for support of process cache.
(class queue_process_param): New class to allow request loop threading.
(class server_request_queue): Add beginning of process cache support.
Allow request loop threading.
(request_loop): Thread function for request loops.
(server_request_queue::process_requests): Initiator for threaded request loops.
(client_request_shutdown::serve): Add beginning of process cache support.
(server_request::server_request): Ditto.
(server_request::process): Use debug_printf. Add beginning of process cache support.
(server_request_queue::cleanup): Kill off any request loop threads.
(server_request_queue::add): Add beginning of process cache support.
(handle_signal): Trigger a shutdown.
(main): Print out some useful info at startup - version, date time.
Add process cache support.
Spawn a separate thread for the transport request loop, thus allowing concurrent
support for multiple transports.
* cygserver_client.cc (client_request_get_version::serve): Add process cache support.
(client_request_attach_tty::serve): Add process cache support.
(client_request_shutdown::serve): Add process cache support.
* cygsserver_process.cc: New file with the process cache support.
* cygserver_shm.cc: Redefine debug_printf to allow conditional output.
* cygwin.din: Export shmdt().
* shm.cc: Run indent.
Update FIXME's.
(shmdt): New function.
* include/cygwin/cygserver.h (class client_request): Add process cache support.
(class client_request_get_version): Ditto.
(class client_request_shutdown): Ditto.
(class client_request_attach_tty): Ditto.
* include/cygwin/cygserver_process.h: New header for process cache support.
Diffstat (limited to 'winsup/cygwin/cygserver_shm.cc')
-rwxr-xr-x | winsup/cygwin/cygserver_shm.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/cygserver_shm.cc b/winsup/cygwin/cygserver_shm.cc index 97246f0e389..e4da727e63c 100755 --- a/winsup/cygwin/cygserver_shm.cc +++ b/winsup/cygwin/cygserver_shm.cc @@ -1,4 +1,4 @@ -/* shm.cc: Single unix specification IPC interface for Cygwin +/* cygserver_shm.cc: Single unix specification IPC interface for Cygwin Copyright 2001 Red Hat, Inc. @@ -18,8 +18,9 @@ #endif #ifndef __INSIDE_CYGWIN__ +#define DEBUG 0 #define system_printf printf -#define debug_printf printf +#define debug_printf if (DEBUG) printf #define api_fatal printf #include <stdio.h> #include <windows.h> @@ -293,8 +294,8 @@ client_request_shm_get::serve (transport_layer_base * conn) shmname = stringbuf; snprintf (stringbuf1, 29, "CYGWINSHMD0x%0qx", parameters.in.key); shmaname = stringbuf1; -debug_printf ("system id strings are \n%s\n%s\n",shmname,shmaname); -debug_printf ("key input value is 0x%0qx\n", parameters.in.key); + debug_printf ("system id strings are \n%s\n%s\n",shmname,shmaname); + debug_printf ("key input value is 0x%0qx\n", parameters.in.key); } /* attempt to open the key */ |