1
0
Fork 0
libfringe/src
whitequark 231bc3cc46 Yielder: use Cell internally to allow suspending via multiple borrows.
The use case is as follows: let's say I have a scheduler that uses
libfringe for context switching. A single thread may open several
sockets, each of which presents a std::io::Read interface, and
waiting in Read::read requires having a reference to the yielder
inside the socket.

This could be worked around with RefCell in the API consumer, but
there is no real reason to not implement it in libfringe.

close #48
2016-09-06 23:37:33 -04:00
..
arch Bring back workarounds for Mach-O assembly syntax. 2016-09-04 07:18:55 -04:00
debug use valgrind_request from crates.io 2016-08-30 13:43:51 -04:00
os arch/x86_64: hack to work around ld64 shortcomings on OS X. 2016-08-31 20:25:00 -04:00
context.rs Pass the new stack pointer by value into the swap trampoline 2016-09-04 02:13:46 -04:00
generator.rs Yielder: use Cell internally to allow suspending via multiple borrows. 2016-09-06 23:37:33 -04:00
lib.rs Expose fringe::STACK_ALIGNMENT, and make OwnedStack respect it. 2016-09-02 19:44:34 -04:00
owned_stack.rs Expose fringe::STACK_ALIGNMENT, and make OwnedStack respect it. 2016-09-02 19:44:34 -04:00
slice_stack.rs Expose fringe::STACK_ALIGNMENT, and make OwnedStack respect it. 2016-09-02 19:44:34 -04:00
stack.rs Expose fringe::STACK_ALIGNMENT, and make OwnedStack respect it. 2016-09-02 19:44:34 -04:00