Message-ID: <38D25155.2054B2EB@radar.mcgill.ca> From: Frederic Cazenave 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 Content-Type: multipart/alternative; boundary="------------82F242055096B5CCB7A59C16" 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 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--