X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-pdu-assoc-thread.cpp;fp=src%2Fyaz-pdu-assoc-thread.cpp;h=294aa609475bdbb5118314549cf7e62ffb2498bc;hb=7411ed6df7fc0b535f83503f73d70e80f390e295;hp=207a68be0dafaae5f5edbde4ae1d9a1fcb2eebd2;hpb=75f7c460d6d10961f3d2ed841b757d6d6b7725d7;p=yazpp-moved-to-github.git diff --git a/src/yaz-pdu-assoc-thread.cpp b/src/yaz-pdu-assoc-thread.cpp index 207a68b..294aa60 100644 --- a/src/yaz-pdu-assoc-thread.cpp +++ b/src/yaz-pdu-assoc-thread.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-pdu-assoc-thread.cpp,v 1.11 2005-06-08 13:28:06 adam Exp $ + * $Id: yaz-pdu-assoc-thread.cpp,v 1.12 2005-06-25 15:53:19 adam Exp $ */ #ifdef WIN32 @@ -53,7 +53,7 @@ events(void *p) yaz_log (YLOG_LOG, "thread started"); while (s->processEvent() > 0) - ; + ; yaz_log (YLOG_LOG, "thread finished"); #ifdef WIN32 #else @@ -72,7 +72,7 @@ void PDU_AssocThread::childNotify(COMSTACK cs) /// Clone PDU Observer new_observable->m_PDU_Observer = - m_PDU_Observer->sessionNotify(new_observable, cs_fileno(cs)); + m_PDU_Observer->sessionNotify(new_observable, cs_fileno(cs)); #ifdef WIN32 long t_id; t_id = _beginthread (events, 0, socket_observable); @@ -86,9 +86,17 @@ void PDU_AssocThread::childNotify(COMSTACK cs) int id = pthread_create (&tid, 0, events, socket_observable); if (id) - yaz_log (YLOG_ERRNO|YLOG_FATAL, "pthread_create returned id=%d", id); + yaz_log (YLOG_ERRNO|YLOG_FATAL, "pthread_create returned id=%d", id); else - pthread_detach (tid); + pthread_detach (tid); #endif } #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +