From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71daebeb6145ebb6 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Stream venting (long) Date: 1998/12/30 Message-ID: <76dh6m$r63$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 427115344 References: <768sng$6r9$1@nnrp1.dejanews.com> <769g3r$moq$1@nnrp1.dejanews.com> <76aor7$l4q$1@nnrp1.dejanews.com> <76baib$4ne$1@nnrp1.dejanews.com> <76de7d$opb$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 166.72.69.228 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Dec 30 15:34:46 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1998-12-30T00:00:00+00:00 List-Id: In article <76de7d$opb$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: > Hmm. It appears you think my problem is with > algorithmicly handling the clients locking when locking > is happening interally already. That's not the case; my > problem is making the clients do their own pre- and > postprocessing. That's a crappy interface. My code should > be handling messy details like that for them (not so > incidently, removing one possible source for errors). > They should just be able to do a 'Write on their data > structure and be done with it. I agree, a crappy interface, why on earth would you do it that way. The details of the locking should be buried in the stream attribute routines that you write. If you want the locking mechanism to be general, you could even make an extended stream type that had the necessary lock field, but most likely it would be perfectly convenient to just use a single global lock. I really don't see a significant problem here, it seems a straightforward programming excercise, but most certainly you don't want the client calling the stream routine to have to do the locking, and of course (reread my messages) I never suggested such a thing -- that was your suggestion! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own