Thread-pool implementation in DCMTK using scppool

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
cyril.mj
Posts: 9
Joined: Wed, 2018-07-11, 13:22

Thread-pool implementation in DCMTK using scppool

#1 Post by cyril.mj »

Hi all,
I am trying to implement a thread-pool with maximum of 5 threads. It has not been implemented at present, I want to implement it so that I can use it in a project I am working on. Could anyone please give me some direction on how to implement this feature.

I tried to implement the thread-pool using m_waiting and m_workerIdle in scppool, but the thread seems to end no matter what I do. I commented all the kiil_thread functions, but still it doesn't seem to do any good. I think it is some exception that is causing this issue but I cant determine what the exception is.

How do I implement this? what am i missing, Please let me know.

Thanks
Cyril M Jose

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Thread-pool implementation in DCMTK using scppool

#2 Post by Michael Onken »

Hi Cyril,

look at dcmnet/tests/tpool.cc which uses the SCP Pool class and therefore demonstrates its usage.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest