Article View: comp.sys.powerpc
Article #3258Re: Debate: PowerMac "trounces" Pentium....???
From: Tom L. Davis
Date: Fri, 16 Feb 1996 02:51
Date: Fri, 16 Feb 1996 02:51
31 lines
1744 bytes
1744 bytes
In article <4fo9jd$cq0@meaddata.lexis-nexis.com>, christw@meaddata.com
(Christopher C. Wood) wrote:
In article <4fiq8t$l5q@nnrp1.news.primenet.com>, Jeff Rugen
<jrugen@primenet.com> writes:
|> Well, porting _too_ MacOS looks like a pain, but porting _from_ it
|> looks pretty simple...
|> #ifndef MAC
|> #define WaitNextEvent(x,y,a,b) /* Wait Next Event (x,y,a,b) */
|> #endif /* MAC */
|> Maybe we should design for the MacOS and then everything will be
|> easily portable.
If only it were that easy. MacOS code is written knowing that the
program can only be "preempted" at certain points in the code. That
is the mechanism for building exclusive access to shared resources.
Your #ifndef technique breaks any program that needs exclusive access
to a shared resource.
Chris
--
Speaking only for myself, of course.
Chris Wood christw@lexis-nexis.com ChrisCWood@eworld.com
Then just define WaitNextEvent to enable interrupts and then disable them.
Tom
Technical Details
Message-ID:
<davis-1502962051400001@pppsb5.itg.ti.com>Path:
arc1-ca.pugleaf.net!pppsb5.itg.ti.com!userReferences:
<nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <4fiq8t$l5q@nnrp1.news.primenet.com> <4fo9jd$cq0@meaddata.lexis-nexis.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!pppsb5.itg.ti.com!user From: davis@adrs1.dseg.ti.com (Tom L. Davis) Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel Subject: Re: Debate: PowerMac "trounces" Pentium....??? Date: Thu, 15 Feb 1996 20:51:40 -0600 Organization: Texas Instruments Message-ID: <davis-1502962051400001@pppsb5.itg.ti.com> References: <nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <4fiq8t$l5q@nnrp1.news.primenet.com> <4fo9jd$cq0@meaddata.lexis-nexis.com> NNTP-Posting-Host: pppsb5.itg.ti.com