On Wed, Feb 8, 2012 at 5:21 PM, Brian Anderson <[email protected]> wrote: > Hey. > > One of the several painful things about creating bindings for native > libraries is that calling blocking functions prevents other tasks from making > progress. This makes using things like sockets or libuv problematic. No more > - a solution is here! >
You might want to look at User Mode Scheduling http://msdn.microsoft.com/en-us/library/windows/desktop/dd627187(v=vs.85).aspx It's windows only, and only 64-bit at that, but it allows you to schedule threads manually. Basically if a thread calls in to the system (or manually calls yield), the system switches to your scheduler instead of blocking the OS thread. -- Sebastian Sylvan _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
