<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Remember to use m3_pthread_t and PTHREAD_FROM_M3.<br>This is to accomodate systems where pthread_t might be an int or a pointer-sized integer.<BR> <BR>Granted, I suppose all the ABIs make it not matter.<BR> <BR><a href="https://github.com/modula3/cm3/blob/af5b2314a8a7ea76d04dbedcb51dee56ab347c51/m3-libs/m3core/src/m3core.h">https://github.com/modula3/cm3/blob/af5b2314a8a7ea76d04dbedcb51dee56ab347c51/m3-libs/m3core/src/m3core.h</a><BR> <BR>Should we just play it loose instead? Maybe.<BR> <BR>Our Mac OSX code is a little different now and uses mach_port_t instead of pthread_t.<BR>I'm not certain your code will compile there but I can look more closely, much later.<BR> <BR>Thank you,<br> - Jay<br><br> <BR><div><hr id="stopSpelling">From: peter.mckinna@gmail.com<br>Date: Fri, 2 Oct 2015 15:23:30 +1000<br>To: m3devel@elegosoft.com<br>Subject: [M3devel] real time threads<br><br><div dir="ltr">Hi,<div>  Just committed a new interface adding support for real time policies and priorities for pthreads, if anyone is interested. Comments, fixes, flames welcome. Also included is a subtype of mutex allowing support for priority inversion. For a fascinating real world example of this just google what really happened on mars.  Also you may need to be running as root to change the policy or priority of a thread.</div><div><br></div><div>Peter</div></div>
<br>_______________________________________________
M3devel mailing list
M3devel@elegosoft.com
https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel</div>                                           </div></body>
</html>