From 314671f6e9eec081dbefc718f051488ecf10ba0e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 8 Jun 2000 17:59:30 +0000 Subject: [PATCH] cleaned up thread names --- src/ca/tcpiiu.cpp | 4 ++-- src/ca/udpiiu.cpp | 6 +++--- src/db/dbServiceIO.cpp | 2 +- src/rsrv/caservertask.c | 2 +- src/rsrv/cast_server.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ca/tcpiiu.cpp b/src/ca/tcpiiu.cpp index 9aace5404..2e73046e1 100644 --- a/src/ca/tcpiiu.cpp +++ b/src/ca/tcpiiu.cpp @@ -325,7 +325,7 @@ extern "C" void cacRecvThreadTCP (void *pParam) if ( tbs != tbsSuccess ) { priorityOfSend = priorityOfSelf; } - tid = threadCreate ("CAC TCP Send", priorityOfSend, + tid = threadCreate ("CAC-TCP-send", priorityOfSend, threadGetStackSize (threadStackMedium), cacSendThreadTCP, piiu); if (tid) { while (1) { @@ -486,7 +486,7 @@ tcpiiu::tcpiiu (cac *pcac, const struct sockaddr_in &ina, unsigned minorVersion, priorityOfRecv = priorityOfSelf; } - tid = threadCreate ("CAC TCP Recv", priorityOfRecv, + tid = threadCreate ("CAC-TCP-recv", priorityOfRecv, threadGetStackSize (threadStackMedium), cacRecvThreadTCP, this); if (tid==0) { ca_printf ("CA: unable to create CA client receive thread\n"); diff --git a/src/ca/udpiiu.cpp b/src/ca/udpiiu.cpp index 0d13d314a..2924f359b 100644 --- a/src/ca/udpiiu.cpp +++ b/src/ca/udpiiu.cpp @@ -458,7 +458,7 @@ udpiiu::udpiiu (cac *pcac) : ca_printf ("CAC warning: unable to get a higher priority for a UDP recv thread\n"); } - tid = threadCreate ("CAC UDP Recv", priorityOfRecv, + tid = threadCreate ("CAC-UDP-recv", priorityOfRecv, threadGetStackSize (threadStackMedium), cacRecvThreadUDP, this); if (tid==0) { ca_printf ("CA: unable to create UDP receive thread\n"); @@ -483,7 +483,7 @@ udpiiu::udpiiu (cac *pcac) : priorityOfSend = priorityOfSelf; } - tid = threadCreate ( "CAC UDP Send", priorityOfSend, + tid = threadCreate ( "CAC-UDP-send", priorityOfSend, threadGetStackSize (threadStackMedium), cacSendThreadUDP, this ); if (tid==0) { ca_printf ("CA: unable to create UDP transmitt thread\n"); @@ -524,7 +524,7 @@ udpiiu::udpiiu (cac *pcac) : ca_printf ("CAC warning: unable to get a higher priority for repeater thread\n"); } - tid = threadCreate ( "CA repeater", priorityOfRepeater, + tid = threadCreate ( "CAC-repeater", priorityOfRepeater, threadGetStackSize (threadStackMedium), caRepeaterThread, 0); if (tid==0) { ca_printf ("CA: unable to create CA repeater daemon thread\n"); diff --git a/src/db/dbServiceIO.cpp b/src/db/dbServiceIO.cpp index 281e79b37..996dff6ef 100644 --- a/src/db/dbServiceIO.cpp +++ b/src/db/dbServiceIO.cpp @@ -132,7 +132,7 @@ dbEventSubscription dbServiceIO::subscribe ( struct dbAddr &addr, dbSubscription this->mutex.unlock (); return 0; } - status = db_start_events ( this->ctx, "CAC event", + status = db_start_events ( this->ctx, "CAC-event", cacAttachClientCtx, clientCtx, slightlyHigherPriority ); if ( status ) { db_close_events (this->ctx); diff --git a/src/rsrv/caservertask.c b/src/rsrv/caservertask.c index ce82c98ca..8e998e362 100644 --- a/src/rsrv/caservertask.c +++ b/src/rsrv/caservertask.c @@ -228,7 +228,7 @@ struct client *create_client (SOCKET sock) return NULL; } - status = db_start_events (client->evuser, "CAS event", + status = db_start_events (client->evuser, "CAS-event", NULL, NULL, slightlyLowerPriority); if (status != DB_EVENT_OK) { errlogPrintf("CAS: unable to start the event facility\n"); diff --git a/src/rsrv/cast_server.c b/src/rsrv/cast_server.c index 859114e8d..d04c24018 100644 --- a/src/rsrv/cast_server.c +++ b/src/rsrv/cast_server.c @@ -201,7 +201,7 @@ int cast_server(void) } /* tell clients we are on line again */ - tid = threadCreate("CAonline",threadPriorityChannelAccessClient-3, + tid = threadCreate("CAS-beacon",threadPriorityChannelAccessClient-3, threadGetStackSize(threadStackSmall), (THREADFUNC)rsrv_online_notify_task,0); if(tid == 0) {