X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fyaz-pdu-assoc-thread.cpp;h=9eac713be0f79686c615b6266b95f01ca39d673a;hb=805b4fdf7b70b0e9b298064f24ceff0c1d38e05b;hp=4612ad429d67d7f97f26a474be2f5f4d9a06b5d4;hpb=e432b52c33a684e9f90627b971d14da6b362daff;p=yazpp-moved-to-github.git diff --git a/src/yaz-pdu-assoc-thread.cpp b/src/yaz-pdu-assoc-thread.cpp index 4612ad4..9eac713 100644 --- a/src/yaz-pdu-assoc-thread.cpp +++ b/src/yaz-pdu-assoc-thread.cpp @@ -1,10 +1,11 @@ -/* - * Copyright (c) 1998-2004, Index Data. +/* This file is part of the yazpp toolkit. + * Copyright (C) 1998-2013 Index Data and Mike Taylor * See the file LICENSE for details. - * - * $Id: yaz-pdu-assoc-thread.cpp,v 1.16 2008-01-21 15:57:27 adam Exp $ */ +#if HAVE_CONFIG_H +#include +#endif #ifdef WIN32 #define USE_THREADS 1 #endif @@ -46,7 +47,12 @@ PDU_AssocThread::PDU_AssocThread( ISocketObservable *socketObservable) : PDU_Assoc(socketObservable) { - + +} + +PDU_AssocThread::~PDU_AssocThread() +{ + } void worker::run() @@ -63,7 +69,7 @@ void worker::run() void __cdecl #else void * -#endif +#endif events(void *p) { worker *w = (worker *) p; @@ -82,7 +88,7 @@ void PDU_AssocThread::childNotify(COMSTACK cs) /// Clone PDU Observer new_observable->m_PDU_Observer = m_PDU_Observer->sessionNotify(new_observable, cs_fileno(cs)); - + if (!new_observable->m_PDU_Observer) { new_observable->shutdown(); @@ -117,6 +123,7 @@ void PDU_AssocThread::childNotify(COMSTACK cs) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab