<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 3:40 PM, Scott Lystig Fritchie <span dir="ltr"><<a href="mailto:fritchie@snookles.com" target="_blank">fritchie@snookles.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lukas Larsson <<a href="mailto:lukas@erlang.org">lukas@erlang.org</a>> wrote:<br>
<br>
ll> Â As stated in this thread there is no way to do this<br>
ll> cross-platform, so if you need this functionality and it is<br>
ll> available on your OS I would suggest writing a small nif.<br>
<br>
To avoid angering the reduction-based-scheduling-gods-that-**will**-<br>
smite-you-if-you-really-do-this, your NIF is no longer so small because<br>
you'll need to do your own thread pool management + use the NIF to<br>
initiate the sync + message passing when the pool has finished work.<br>
<br>
Or you pass the work to a new-fangled dirty scheduler?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I knew there was a reason why I tend to write linked-in drivers rather than nifs :)  yes you would have to/want to put the call in a dirty scheduler or run your own threading orchestra. </div>
</div></div></div>