Commit Graph
12 Commits
Author SHA1 Message Date
Alex Crichton 164193fe82 Add a method to add data to an event loop directly
Avoids Send entirely
2016-08-05 15:58:14 -07:00
Alex Crichton d2bb8e01fd Implement Sync for LoopData
It's already Sync because it's safe to access amongst many threads by the sheer
fact that data is only accessed on one thread. That is, all other concurrent
accessors, if any, will receive `None`.
2016-08-05 14:01:36 -07:00
Alex Crichton 5b18514970 Add some assorted debug messages 2016-08-05 14:01:24 -07:00
Alex Crichton 42a0a10294 Set the CURRENT_LOOP for processing messages
This ensures that timeouts and callbacks are run with the TLS var set
2016-08-05 14:00:59 -07:00
Alex Crichton 368a9c70e8 Fix RefCell borrow_mut error on firing timeouts
The scope was a little longer than intended!
2016-08-05 09:38:41 -07:00
Alex Crichton 5d0fdf26a9 Fix compile of minihttp on stable 2016-08-05 09:25:40 -07:00
Alex Crichton e7f4313cf4 Implementing LoopData
This type acts for a handle to storage of non-`Send` data. The handle itself is
sendable across threads and is therefore suitable for storage in a `Future`.
This data uses communication internally and a new method on `Task` to ensure
that when the data needs to be accessed the future will find its way to the
right thread.

More on this type coming soon!
2016-08-04 20:34:54 -07:00
Alex Crichton 5c9daad88b Add a timer wheel 2016-08-03 22:57:07 -07:00
Alex Crichton 1b07e91834 Actually do what EventLoop::deschedule says 2016-08-02 10:39:06 -07:00
Alex Crichton 79760da66c Remove DropSource from mio
I'm... not sure if it does anything any more as a `ReadinessStream` isn't
clone-able nor is it split. As a result, I don't think we need it.
2016-08-02 10:37:32 -07:00
Alex Crichton 5970203b21 Finish docs on futures-mio
Also remove mio BufReader/BufWriter for now, they should come back shortly
though
2016-08-01 17:41:58 -07:00
Alex Crichton bc64194be1 Let's rename everything! 2016-07-30 22:50:58 -07:00