delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/17/13:52:57

Message-ID: <38D25155.2054B2EB@radar.mcgill.ca>
From: Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
Organization: IRD (ex ORSTOM)
X-Mailer: Mozilla 4.08 [en] (X11; I; IRIX64 6.1 IP26)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Pointer and Interrupt
Lines: 67
Date: Fri, 17 Mar 2000 15:36:33 GMT
NNTP-Posting-Host: 132.206.246.96
X-Complaints-To: abuse AT mcgill DOT ca
X-Trace: carnaval.risq.qc.ca 953307393 132.206.246.96 (Fri, 17 Mar 2000 10:36:33 EST)
NNTP-Posting-Date: Fri, 17 Mar 2000 10:36:33 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

--------------82F242055096B5CCB7A59C16
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

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

int data;
int * ptr;

_go32_dpmi_lock_data (&data,sizeof(int));

and for ptr ? nothing to do ?

Thanks

Fred Cazenave

--
 _________________________________________________________
|                                                          |
|               Frederic CAZENAVE                          |
|    _/\_  /^=  McGill Radar                               |
| \_/    \//    Box 198, MacDonald College                 |
|   | /-\ |     Ste Anne de Bellevue                       |
|   ||   ||     Quebec, Canada   H9X 3V9                   |
|               Tel (514) 398 7733 fax (514) 398 7755      |
|               mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr       |
|               http://www.mpl.orstom.fr/hydrologie/catch/ |
|__________________________________________________________|



--------------82F242055096B5CCB7A59C16
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hi,
<P>If I use a pointer inside an interruot routine, do I need
<BR>to lock something else other than the adresse pointed ?
<P>int data;
<BR>int * ptr;
<P>_go32_dpmi_lock_data (&amp;data,sizeof(int));
<P>and for ptr ? nothing to do ?
<P>Thanks
<P>Fred Cazenave
<PRE>--&nbsp;
&nbsp;_________________________________________________________
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Frederic CAZENAVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp; _/\_&nbsp; /^=&nbsp; McGill Radar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| \_/&nbsp;&nbsp;&nbsp; \//&nbsp;&nbsp;&nbsp; Box 198, MacDonald College&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp; | /-\ |&nbsp;&nbsp;&nbsp;&nbsp; Ste Anne de Bellevue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp; ||&nbsp;&nbsp; ||&nbsp;&nbsp;&nbsp;&nbsp; Quebec, Canada&nbsp;&nbsp; H9X 3V9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel (514) 398 7733 fax (514) 398 7755&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr">mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.mpl.orstom.fr/hydrologie/catch/">http://www.mpl.orstom.fr/hydrologie/catch/</A> |
|__________________________________________________________|</PRE>
&nbsp;</HTML>

--------------82F242055096B5CCB7A59C16--

- Raw text -


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