From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,4753a27d8ceddc44 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-02-17 21:51:07 PST Path: sparky!uunet!enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!uni-paderborn.de!joost From: joost@cadlab.de (Michael Joosten) Newsgroups: comp.unix.osf.misc Subject: Re: Thread-safe libraries for C++? Followup-To: comp.unix.osf.misc Date: 17 Feb 93 21:51:07 Organization: CADLAB, Paderborn, FRG Message-ID: References: <1993Feb12.204022.25188@nntpd.lkg.dec.com> <1993Feb16.175330.11699@mdivax1.uucp> Reply-To: joost@cadlab.de NNTP-Posting-Host: ori.cadlab.uni-paderborn.de 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 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~