summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-21 20:09:52 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-21 20:09:52 +0000
commit12cd84a033e2bdf57ae464fc084423baa31baabb (patch)
tree3d1b47cf4b41525e85955a52b81a7c6ae98a87f2 /apps
parent30417f3afa47b03992b9e33577f1ea4a5b6fc3a2 (diff)
downloadATCD-12cd84a033e2bdf57ae464fc084423baa31baabb.tar.gz
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r--apps/JAWS/ChangeLog5
-rw-r--r--apps/JAWS/server/HTTP_Server.cpp47
-rw-r--r--apps/JAWS/server/HTTP_Server.h3
3 files changed, 15 insertions, 40 deletions
diff --git a/apps/JAWS/ChangeLog b/apps/JAWS/ChangeLog
index 232ecaffb6d..6576fe6a656 100644
--- a/apps/JAWS/ChangeLog
+++ b/apps/JAWS/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 21 15:09:03 1997 James C Hu <jxh@lambada.cs.wustl.edu>
+
+ * server/HTTP_Server.{h,cpp}: Got rid of Solaris specific
+ debugging code (thr_create, thr_join).
+
Fri Jul 11 02:15:12 1997 James C Hu <jxh@lambada.cs.wustl.edu>
* server/HTTP_Response.cpp: Changes so that the HEADER is not
diff --git a/apps/JAWS/server/HTTP_Server.cpp b/apps/JAWS/server/HTTP_Server.cpp
index db146a6aeea..7cfec3be8ae 100644
--- a/apps/JAWS/server/HTTP_Server.cpp
+++ b/apps/JAWS/server/HTTP_Server.cpp
@@ -69,6 +69,16 @@ HTTP_Server::parse_args (int argc,
this->throttle_ = 1;
}
break;
+ case 'f':
+ if (ACE_OS::strcmp (get_opt.optarg, "THR_BOUND") == 0)
+ {
+ }
+ else if (ACE_OS::strcmp (get_opt.optarg, "THR_DAEMON") == 0)
+ {
+ }
+ else if (ACE_OS::strcmp (get_opt.optarg, "THR_DETACHED") == 0)
+ {
+ }
case 'i':
// SYNCH -> synchronous I/O
// ASYNCH -> asynchronous I/O
@@ -210,12 +220,6 @@ HTTP_Server::thread_per_request (void)
{
int grp_id = -1;
-#if 0
- ::thr_create (0, 0,
- Thread_Per_Request_Task::REAPER, (void *) this,
- THR_NEW_LWP, 0);
-#endif
-
// thread per request
if (this->acceptor_.open (ACE_INET_Addr (this->port_), 1,
PF_INET, this->backlog_) == -1)
@@ -276,16 +280,10 @@ Thread_Per_Request_Task::open (void *args)
if (args != 0)
grp_id = (int *) args;
-#if defined (ACE_WIN32)
if (*grp_id == -1)
status = *grp_id = this->activate (THR_DETACHED | THR_NEW_LWP);
else
status = this->activate (THR_DETACHED | THR_NEW_LWP, 1, 0, -1, *grp_id, 0);
-#else
- status = ::thr_create (0, 0,
- Thread_Per_Request_Task::DEBUG_TPR, (void *) this,
- THR_DETACHED | THR_DAEMON | THR_NEW_LWP, 0);
-#endif
if (status == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "Thread_Per_Request_Task::open"),
@@ -306,31 +304,6 @@ Thread_Per_Request_Task::svc (void)
return 0;
}
-void *
-Thread_Per_Request_Task::DEBUG_TPR (void *task)
-{
- Thread_Per_Request_Task *tpr_task = (Thread_Per_Request_Task *) task;
- tpr_task->svc ();
- tpr_task->close (0);
- // ::thr_exit (0);
- return 0;
-}
-
-void *
-Thread_Per_Request_Task::REAPER (void *task)
-{
- Thread_Per_Request_Task *tpr_task = (Thread_Per_Request_Task *) task;
- tpr_task = tpr_task;
-
-#if !defined (ACE_WIN32)
- while (1)
- if (::thr_join(0, 0, 0) == 0)
- ACE_DEBUG ((LM_DEBUG, " (%t) REAPER joined a thread\n"));
-#endif
-
- return 0;
-}
-
int
Thread_Per_Request_Task::close (u_long)
{
diff --git a/apps/JAWS/server/HTTP_Server.h b/apps/JAWS/server/HTTP_Server.h
index 677fee7063b..6b6f9af1217 100644
--- a/apps/JAWS/server/HTTP_Server.h
+++ b/apps/JAWS/server/HTTP_Server.h
@@ -103,9 +103,6 @@ public:
virtual int close (u_long);
virtual int svc (void);
- static void * DEBUG_TPR (void *task);
- static void * REAPER (void *task);
-
private:
ACE_HANDLE handle_;
};