🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13038

Re: Locking & forbiding

#13038
From: Dave Lowrey
Date: Thu, 08 Jun 1989 13:26
44 lines
2277 bytes
In article <108749@sun.Eng.Sun.COM> cmcmanis@sun.UUCP (Chuck McManis) writes:
>I wrote : 
>>Why don't you use SetWindowTitle()?
>
>In article <d2YG02GD32Hm01@amdahl.uts.amdahl.com> (Dave Lowrey) writes:
>>I need to get the address of the current title, as well as
>>setting a new title.
>>
>>So I guess I am asking if it is safe to access this info
>>without any locking.
>
>Hmmmm, why do I get the feeling that you aren't doing something that 
>one my consider "normal" programming practice? :-) 

That's why I am asking these questions. I would like to remain
"normal" (Whatever that means). :-)

>
>So to be completely blunt and open about this :
>
>       You opened a window, so you have a pointer to the window...

You assume wrong. The "shell" has opened the window, so I don't
own it.

The program I am writing puts the Current Directory into the
title bar. It works now, without ANY locking, but I suspect that
I am inviting trouble by not preventing other processes from accessing
the data.

>
>By the way, I couldn't find any reference in IntuitionBase that had
>to do with titles anyway. Where were you looking?
>
You are correct. But, in intutitonbase.h (I think, tne I am at work,
and the RKM is at home), it says that whenever referencing IntuitionBase,
you should use LockIbase and UnlockIbase. I access IntuitionBase to
get the pointer to the current screen.

-- 
"What is another word  |  Dave Lowrey    | [The opinions expressed MAY be
 for 'Thesaurus'?"     |  Amdahl Corp.   | those of the author and are not
                       |  Houston, Texas | necessarily those of his
   Steven Wright       |  amdahl!dwl10   | employer]   (`nuff said!)
Technical Details
Message-ID: <1aY.02kv33t701@amdahl.uts.amdahl.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!sun-barr!ames!amdahl!dwl10
References: <7cBq029532iy01@amdahl.uts.amdahl.com> <108333@sun.Eng.Sun.COM> <d2YG02GD32Hm01@amdahl.uts.amdahl.com> <108749@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!sun-barr!ames!amdahl!dwl10
From: dwl10@uts.amdahl.com (Dave Lowrey)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Locking & forbiding
Message-ID: <1aY.02kv33t701@amdahl.uts.amdahl.com>
Date: 8 Jun 89 13:26:08 GMT
References: <7cBq029532iy01@amdahl.uts.amdahl.com> <108333@sun.Eng.Sun.COM> <d2YG02GD32Hm01@amdahl.uts.amdahl.com> <108749@sun.Eng.Sun.COM>
Reply-To: dwl10@amdahl.uts.amdahl.com (Dave Lowrey)
Organization: Amdahl Corporation, Houston TX
Lines: 44