delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/18/03:49:34

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pointer and Interrupt
Date: Sat, 18 Mar 2000 09:20:32 +0200
Organization: NetVision Israel
Lines: 12
Message-ID: <38D32E40.6F986253@is.elta.co.il>
References: <38D25155 DOT 2054B2EB AT radar DOT mcgill DOT ca>
NNTP-Posting-Host: ras1-p109.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 953363940 25965 62.0.172.111 (18 Mar 2000 07:19:00 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 18 Mar 2000 07:19:00 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Frederic Cazenave wrote:
> 
> If I use a pointer inside an interruot routine, do I need
> to lock something else other than the adresse pointed ?

You need to lock _everything_ that will be accessed during interrupt
processing.  This includes code and data.  So if the pointer is dereferenced
by the handler, you need to lock the data it points to.  If the pointer is
only accessed for pointer arithmetics and such likes, then only the pointer
itself should be locked.

PS: Please don't post in HTML.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019