From: jb7m+@andrew.cmu.edu (Jon C. R. Bennett)
Subject: Re: Thread-safe libraries for C++?
Date: 12 Feb 93 12:22:23 GMT [thread overview]
Message-ID: <gfT2ATS00WBEA4Tjhf@andrew.cmu.edu> (raw)
In-Reply-To: <1993Feb12.184345.19220@walter.bellcore.com>
doel@bbq.uucp (Mike Doel) writes:
> //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.
the stream class should not obtain the mutex for you since few aplications
would need it, if thats what you want then, write a subclass of streams
that does the locks and then just calls the normal stream methods
jon
next prev parent reply other threads:[~1993-02-12 12:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-02-12 18:43 Thread-safe libraries for C++? Mike Doel
1993-02-12 12:22 ` Jon C. R. Bennett [this message]
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