Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: doel@bbq.uucp (Mike Doel)
Subject: Thread-safe libraries for C++?
Date: Fri, 12 Feb 93 18:43:45 GMT	[thread overview]
Message-ID: <1993Feb12.184345.19220@walter.bellcore.com> (raw)

Our group is doing a little research into which implementation of RPC's we
wish to use for an upcomming project.  We're leaning towards the DCE
standard but for one small thing.  As I understand it, the RPC mechanism for
DCE is implemented using DCE threads.  In order to use threads, you must use
"thread safe" libraries.  Apparently, the standard C libraries aren't thread
safe.  To counteract this, "jacket" routines have been developed which make
the standard Unix libraries thread safe (what does that mean?).

My question is, has anything been done to make C++ libraries safe?  If not,
can we still develop C++ applications in a DCE threaded environment?  I
talked to someone at Transarc (who has a DCE implementation for SunOS 4.1.2)
and he suggested we do something like this:

	//obtain the "mutex", however that's done

	cout << "Now it's safe to do output"

	//release the mutex

This strikes me as terribly kludgy.  Obtaining and release the mutex should
be done by the stream class, not the user of it.

Does anyone have any experience they can offer?

Thanks


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Doel				<doel@bae.bellcore.com>


             reply	other threads:[~1993-02-12 18:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-02-12 18:43 Mike Doel [this message]
1993-02-12 12:22 ` Thread-safe libraries for C++? Jon C. R. Bennett
1993-02-13 18:17   ` Pete Becker
1993-02-14 22:26     ` Andrew Walduck
1993-02-12 20:40 ` Michael J. Grier
1993-02-16 17:54   ` Jim Robinson
1993-02-16 23:14     ` Michael J. Grier
1993-02-18  2:51     ` Michael Joosten
1993-02-18 22:05     ` Greg Brail
1993-02-16 22:29 ` Bob Martin
1993-02-17 18:15   ` John Nagle
1993-02-18 14:37     ` Andrew Condon
1993-02-22 20:22       ` Greg Brail
1993-02-16 22:30 ` Greg Brail
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox