OFCondition is reentrant ?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
focus
Posts: 77
Joined: Wed, 2005-03-16, 20:29
Location: Catalonia

OFCondition is reentrant ?

#1 Post by focus »

Hello!

I'm using dcmtk, with threads sometimes, my doubt is if OFcondition class is reentrant ?

Thanks

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

OFcondition is reentrant in the sense that many OFcondition objects can "live" in different threads without affecting each other. In particular, the OFcondition constants like EC_Normal can safely be used in multiple threads. OFcondition objects do not use any internal locking, which means that any OFcondition object that is passed or shared between threads should be protected by a mutex or semaphore by the user code.

focus
Posts: 77
Joined: Wed, 2005-03-16, 20:29
Location: Catalonia

#3 Post by focus »

Thanks Marco, this was all I needed

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest