Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make SCPs of dcmtk support multi-thread with dcmtk in win32?

549 views
Skip to first unread message

yuyu

unread,
Jan 23, 2003, 9:30:45 PM1/23/03
to
both storescp and Imagectn are only support single-thread in
win32,does anyone know how to make SCPs od dcmtk support
multi-thread.Thanks advanced

Tom

unread,
Jan 28, 2003, 3:35:29 PM1/28/03
to
What we did to support this in our application was we took the code from the
storescp sample and split it into 2 chunks:

1. All code leading up to an association being received
2. All code to handle processing an association

The main thread first runs all code form chunk #1 and then sits in a loop
calling ASC_receiveAssociation.

The rest of the code we put into a thread procedure, and whenever the main
thread receives an association, it creates a thread for that thread proc and
passes in the association pointer as the thread param.

We've been doing it this way for about 3 years now and have it out working
in dozens of sites with multiple modalities. We've never had a problem
before, so I think this is a safe way to do it.

-Tom

"yuyu" <yuyu...@hotmail.com> wrote in message
news:5be7b4f3.03012...@posting.google.com...

0 new messages