Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Thread-safe libraries for C++?
@ 1993-02-12 18:43 Mike Doel
  1993-02-12 12:22 ` Jon C. R. Bennett
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Mike Doel @ 1993-02-12 18:43 UTC (permalink / 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>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1993-02-22 20:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-02-12 18:43 Thread-safe libraries for C++? Mike Doel
1993-02-12 12:22 ` 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

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