<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
> fix for old compilers that can't compile LONGINT: define LongRep.T = INTEGER<br><br>Is that what bootstrapping should do?<br> Automate that little patch for the first pass and undo it in the second?<br> Then always building in dependency order?<br><br><br>Tonight I was trying to build from PPC_DARWIN 5.5.0.<br>I figured, heck, maybe it supports LONGINT already, maybe I should just try<br>building up in dependency order.<br>But then I hit the problem of Compiler.i3 mismatch due to new targets.<br><br><br>So...is that correct?<br>Does building in dependency order predictably fail if compiler has fewer targets than runtime?<br>But starting with existing m3core/libm3 and first building the compiler against them predictably works?<br><br><br>I've added targets a bunch and usually don't have a problem, but I can't say for certain what<br>order I do things when I do this.<br>Certainly "upgrade.py skipgcc" is something I run fairly often.<br>It is very fast on NT386 (and unlike upgrade.sh, it doesn't build all of std).<br><br><br>For now I put in two small hacks to sysutils, so it works with old m3core.<br>I was stuck otherwise.<br><br><br>The hacks are:<br> - assume kernel threads or "single threaded"<br> That is -- always pass 0 for the waitpid option.<br> If sysutils client is multithreaded (always the case),<br> and parent threads depend on child processes (not always the case),<br> and user threads (really not always the case),<br> then there risk of deadlock.<br><br> - if status is non zero but lower 8 bits are zero, set it to 1, to ensure non-zero in lower bits<br> This could be done correctly by copying the current Uexec code into sysutils.<br><br><br>Maybe Compiler.i3 can somehow be implemented to "just work"?<br>And eliminate the redundancy as well?<br>Have the compiler inject its definition into m3core/libm3?<br><br> - Jay<br><br><br><hr id="stopSpelling">From: hosking@cs.purdue.edu<br>To: jay.krell@cornell.edu<br>Date: Mon, 12 Jan 2009 19:22:13 +1100<br>CC: jkrell@elego.de; m3devel@elegosoft.com<br>Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br><br>I think there is a straightforward fix for old compilers that can't compile LONGINT: define LongRep.T = INTEGER. Most everything should compile from there. That's what I recall doing to upgrade my compiler to handle LONGINT. LONGINT is not used anywhere else in m3core, so nothing depends on it working.<div><br></div><div><div><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style=""><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>On 12 Jan 2009, at 19:02, Jay wrote:</div></span></span></span></span></span></span></span></span></div></span></div><div><br class="EC_Apple-interchange-newline"><blockquote><span class="EC_Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div class="EC_hmmessage" style="font-size: 10pt; font-family: Verdana;">If old compiler can't build m3core, such as if old compiler predates LONGINT.<br>You already know this.<br>Are we "past" such compilers?<br> <br> - Jay<br><br><br><hr id="EC_stopSpelling"><br>From:<span class="EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>To:<span class="EC_Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br>Date: Mon, 12 Jan 2009 18:51:08 +1100<br>CC:<span class="EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a>;<span class="EC_Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br><br><br><div><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div style=""><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div>Why do you not build in the following order to get a new compiler? (You may need to downgrade Compiler.tmpl for use with an old compiler so that you don't get a mismatch between m3core and libm3, but otherwise the following sequence should work).</div><div><br></div><div>m3core</div><div>libm3</div><div>sysutils</div><div>m3middle</div><div>m3objfile</div><div>m3linker</div><div>m3back</div><div>m3front</div><div>m3quake</div><div>cm3</div><div><br></div><div>On 12 Jan 2009, at 18:25, Jay wrote:</div></span></span></span></span></span></span></span></span></div></span></div><div><br class="EC_EC_Apple-interchange-newline"><blockquote><span class="EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div class="EC_EC_hmmessage" style="font-size: 10pt; font-family: Verdana;">The compiler uses sysutils. The first pass builds against an old package store, which might not have sysutils at all, if it is that old.<br> <br>Again, once new m3core is around, no problem.<br>I could/should have put in the m3core change and just waited on the sysutils change, rather than go ahead and do the quake stuff, and we can do that now (or your change that moots it, which I haven't looked into yet).<br> <br>I was browsing the docs and it appears there is an "import_pkg" directive for like, copying in a package contents, instead of linking. That might also solve this. I found that relatively late and never looked into it.<br> <br> - Jay<br><br><hr id="EC_EC_stopSpelling"><br>From:<span class="EC_EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>To:<span class="EC_EC_Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br>Date: Mon, 12 Jan 2009 18:19:55 +1100<br>CC:<span class="EC_EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a>;<span class="EC_EC_Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br><br>Not true. sysutils should be built against the m3core with which it will be linked. I don't think this is correct.<br><div><br><div><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div style=""><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div>On 12 Jan 2009, at 17:58, Jay wrote:</div></span></span></span></span></span></span></span></span></div></span></div><div><br class="EC_EC_EC_Apple-interchange-newline"><blockquote><span class="EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div class="EC_EC_EC_hmmessage" style="font-size: 10pt; font-family: Verdana;">To bootstrap I believe.<br> <br> - Jay<br><br><br><hr id="EC_EC_EC_stopSpelling"><br>From:<span class="EC_EC_EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>To:<span class="EC_EC_EC_Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br>Date: Mon, 12 Jan 2009 17:53:02 +1100<br>CC:<span class="EC_EC_EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a>;<span class="EC_EC_EC_Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br><br>Why does sysutils need to be compatible with both old and new versions of m3core?<br><div><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div style=""><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div><br></div></span></span></span></span></span></span></span></span></div></span></div><div><div>On 12 Jan 2009, at 17:39, Jay wrote:</div><br class="EC_EC_EC_EC_Apple-interchange-newline"><blockquote><span class="EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div class="EC_EC_EC_EC_hmmessage" style="font-size: 10pt; font-family: Verdana;">ThreadPosix is basically unaffected -- I never provided user threads on Cygwin.<br> I guess it got a slight reduction regarding DoesWaitPidYield, but its SchedulerPosix implementation was unchanged.<br> <br>The code in ThreadPosix is similar to but different than ThreadPThread.<br>It is possible they could be merged but it wasn't trivial so I left ThreadPosix alone.<br> <br> > You are smearing implementation details across multiple files and directories<br> <br>You really think it is bad to have SchedulerPosix implemented in a small separate file?<br>On top of what happens to be common implementation details of ThreadPThread.m3 and ThreadWin32.m3?<br> <br>ThreadPScheduler.m3 is just basically three functions: IOWait, IOAlertWait, XIOWait<br>Plus the little internal utility, UTimeFromTime, the one liner DoesWaitPidYield, and non-trivial functions nested in XIOWait: TestFDS, CallSelect.<br> <br>I mean, you know, an alternative is to copy out very large chunks of ThreadWin32.m3 and ThreadPThread.m3 and merge them into ThreadCygwin.m3. That would be worse imho.<br> <br>"Directories" hardly.<br> <br>Or I can try debugging cygwin pthreads again.<br> <br> - Jay<br><br><hr id="EC_EC_EC_EC_stopSpelling"><br>CC:<span class="EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a>;<span class="EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>From:<span class="EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>To:<span class="EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br>Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br>Date: Mon, 12 Jan 2009 12:46:54 +1100<br><br>You are smearing implementation details across multiple files and directories. Up until now, ThreadPThread has been nicely self-contained, and captured all the basic pieces of the thread implementation. Also, how does all of this fit with the ThreadPosix implementation?<br><div><br><div><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div style=""><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div>On 12 Jan 2009, at 12:19, Jay wrote:</div></span></span></span></span></span></span></span></span></div></span></div><div><br class="EC_EC_EC_EC_EC_Apple-interchange-newline"><blockquote><span class="EC_EC_EC_EC_EC_Apple-style-span" style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: ; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;"><div class="EC_EC_EC_EC_EC_hmmessage" style="font-size: 10pt; font-family: Verdana;">btw, I don't think it's that hairy, I merely split it into two or three files, and added interfaces so they can reuse code with each other. Movement between files is hard to track though (depending on version control, but with all I've used).<br> <br>The SchedulerPosix implementation moved to ThreadPScheduler.m3.<br>What is shared between it and ThreadPThread/Win32.m3 is ThreadInternal.i3, which maybe should be in ThreadF.i3, though that's exposed outside m3core, and ThreadInternal.i3 includes a variable.<br> <br>I can try again to debug Cygwin pthreads though.<br> <br> - Jay<br><br><br>> From:<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br>> To:<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:jkrell@elego.de">jkrell@elego.de</a><br>> Date: Mon, 12 Jan 2009 11:03:33 +1100<br>> CC:<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>> Subject: Re: [M3devel] [M3commit] CVS Update: cm3<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> Jay,<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> Can you remind me again why Cygwin was unable to use pthreads? It<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> seems you have introduced a bunch of hair into the PTHREADS<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> implementation to deal with broken Cygwin pthreads. As many of us<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> have already pointed out, Cygwin should be a port that tries as much<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> as possible to be like a standard POSIX platform (pthread-based) as<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> opposed to a weird Windows/POSIX hybrid.<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> I have a bunch of code that will be going into the PTHREADS base that<span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> I am now at a loss to integrate with the changes you have made.<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> Help!<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"> </span><br>> -- Tony<br>><span class="EC_EC_EC_EC_EC_Apple-converted-space"></span></div></span></blockquote></div></div></div></span></blockquote></div></div></span></blockquote></div></div></div></span></blockquote></div></div></span></blockquote></div></div></body>
</html>