DCMTK3.6.2 dcmprscu updateJobList

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Emma_cao
Posts: 13
Joined: Mon, 2016-12-05, 10:51

DCMTK3.6.2 dcmprscu updateJobList

#1 Post by Emma_cao »

Dear all:
In vertion DCMTK3.6.2,dcmprscu.cc
updateJoblist() is a little different, what is the purpose of the following code?

currentName.find_first_not_of("1234567890",prefixSize) == (currentName.size() - postfixSize)


Best regards

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: DCMTK3.6.2 dcmprscu updateJobList

#2 Post by Jan Schlamelcher »

It prevents an error that could otherwise occur if there was a print job with a file name that is effictively a prefix of the file name of another print job. In that case one of the print jobs could be processed twice while the other one would not be processed at all, leading to an error and a dealock.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest