From: joost@cadlab.de (Michael Joosten)
Subject: Re: Thread-safe libraries for C++?
Date: 17 Feb 93 21:51:07 [thread overview]
Message-ID: <JOOST.93Feb17215107@ori.cadlab.de> (raw)
In-Reply-To: robinson@mdivax1.uucp's message of 16 Feb 93 17:54:19 GMT
In article <1993Feb16.175330.11699@mdivax1.uucp> robinson@mdivax1.uucp (Jim Robinson) writes:
Is it correct to say then that if one forgets to #include the relevant
header the result is that the native select() is used which could block
the entire process instead of just the calling thread? Is so, isn't this
an incredibly easy mistake to make which may not be terribly easy to
catch?
Sure ! And in the context of C++, the 'mechanism' used in CMA threads is even
more difficult: Guess what happens if you have some member functions like
'XXX.open(...)' and so on.... If you don't plan the introduction of threads
(here, OSF/DEC's CMA threads) rather early you are likely to face some
renamings since the mentioned header file just contains of
#define write cma_read
#define fopen cma_fopen
and so on...
And, are the jacket routines also used to map blocking I/O calls (e.g.
read(), recvfrom()) to non-blocking versions?
Yes.
Michael
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Michael Joosten | Tel. : (+49) (+) 5251-284 120 |
| CADLAB | Fax : (+49) (+) 5251-284 140 |
| Bahnhofstr. 32 | E-Mail: joost@cadlab.de |
| D-4790 Paderborn | ...!uunet!unido!cadlab!joost |
| FRG | Mass mail to: joost@pbinfo.uni-paderborn.de |
|--------------------------------------------------------------------------|
| CADLAB is a cooperation between Uni-GH Paderborn & SNI AG |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next prev parent reply other threads:[~1993-02-18 2:51 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
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 [this message]
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