On Wed, Jul 26, 2000 at 02:54:18AM -0400, Charles Galpin wrote:
> Fred
>
> I have no experience with threads under Linux. However, it might just be
> that 'strncmp' is not thread safe. I can't tell from the man linux man
> page, but I'm used to the solaris man pages which show the thread safety,
> and if reentrant versions exist. It is of course thread safe under solaris
> :)
Charles:
Thanks for the note... I've since found and fixed the problem. it turns
out to have been a bug in one of the data files being used by the demo,
complicated by a lack of error reporting at certain places in the
toolkit. Now the toolkit has much better diagnostics and error handling
in certain places and it runs fine. i've tested it hundreds of times
with up to 16 threads and it appears to run correctly now, with NO
mutexes required. What I don't understand is the exact mechanism that
caused that particular error in the data to result in that kind of a
failure, but at this point I'm not going to kill myself to figure it
out.
Fred
>
> hth
> charles
>
> On Wed, 19 Jul 2000, fred smith wrote:
>
> > Guys 'n Gals:
> >
> > I'd appreciate it if some of you, anyone who knows about threads on
> > Linux, could give me a hand here...
> <snip>
> > ==> while (strncmp (pSR->azNam, seg, HL7_SEG_NAME_LEN) != 0)
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
--
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
"For the word of God is living and active. Sharper than any double-edged
sword, it penetrates even to dividing soul and spirit, joints and marrow;
it judges the thoughts and attitudes of the heart."
---------------------------- Hebrews 4:12 (niv) ------------------------------
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.