projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added pure virtual destructors for interface-like classes.
[yazpp-moved-to-github.git]
/
src
/
yaz-pdu-assoc-thread.cpp
diff --git
a/src/yaz-pdu-assoc-thread.cpp
b/src/yaz-pdu-assoc-thread.cpp
index
54d2cf0
..
294aa60
100644
(file)
--- 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.
*
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-pdu-assoc-thread.cpp,v 1.10 2005-06-02 06:40:21 adam Exp $
+ * $Id: yaz-pdu-assoc-thread.cpp,v 1.12 2005-06-25 15:53:19 adam Exp $
*/
#ifdef WIN32
*/
#ifdef WIN32
@@
-35,9
+35,9
@@
using namespace yazpp_1;
using namespace yazpp_1;
-Yaz_PDU_AssocThread::Yaz_PDU_AssocThread(
- IYazSocketObservable *socketObservable)
- : Yaz_PDU_Assoc(socketObservable)
+PDU_AssocThread::PDU_AssocThread(
+ ISocketObservable *socketObservable)
+ : PDU_Assoc(socketObservable)
{
}
{
}
@@
-49,11
+49,11
@@
void *
#endif
events(void *p)
{
#endif
events(void *p)
{
- Yaz_SocketManager *s = (Yaz_SocketManager *) p;
+ SocketManager *s = (SocketManager *) p;
yaz_log (YLOG_LOG, "thread started");
while (s->processEvent() > 0)
yaz_log (YLOG_LOG, "thread started");
while (s->processEvent() > 0)
- ;
+ ;
yaz_log (YLOG_LOG, "thread finished");
#ifdef WIN32
#else
yaz_log (YLOG_LOG, "thread finished");
#ifdef WIN32
#else
@@
-61,10
+61,10
@@
events(void *p)
#endif
}
#endif
}
-void Yaz_PDU_AssocThread::childNotify(COMSTACK cs)
+void PDU_AssocThread::childNotify(COMSTACK cs)
{
{
- Yaz_SocketManager *socket_observable = new Yaz_SocketManager;
- Yaz_PDU_Assoc *new_observable = new Yaz_PDU_Assoc (socket_observable, cs);
+ SocketManager *socket_observable = new SocketManager;
+ PDU_Assoc *new_observable = new PDU_Assoc (socket_observable, cs);
new_observable->m_next = m_children;
m_children = new_observable;
new_observable->m_next = m_children;
m_children = new_observable;
@@
-72,7
+72,7
@@
void Yaz_PDU_AssocThread::childNotify(COMSTACK cs)
/// Clone PDU Observer
new_observable->m_PDU_Observer =
/// 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);
#ifdef WIN32
long t_id;
t_id = _beginthread (events, 0, socket_observable);
@@
-86,9
+86,17
@@
void Yaz_PDU_AssocThread::childNotify(COMSTACK cs)
int id = pthread_create (&tid, 0, events, socket_observable);
if (id)
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
else
- pthread_detach (tid);
+ pthread_detach (tid);
#endif
}
#endif
#endif
}
#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+