Brian Anderson
|
01b7b7d5a0
|
core::rt: Use unsafe pointers instead of transmuted regions
|
2013-05-14 14:52:02 -07:00 |
|
Brian Anderson
|
ab284d44d8
|
core::rt Restructure some modules
Put all uv code under rt::uv, as if it were in its own crate.
Pull local_sched out of rt::sched.
|
2013-05-13 14:24:10 -07:00 |
|
Brian Anderson
|
1f8ebb6a8e
|
core::rt: Move thread-local scheduler to its own module
|
2013-04-15 15:18:49 -07:00 |
|
Brian Anderson
|
4f1dd1fd21
|
core::rt: Fix two incorrect uses of the thread-local scheduler
These would not be threadsafe
|
2013-04-15 15:13:36 -07:00 |
|
Brian Anderson
|
93757d8185
|
core::rt: Clean up the thread-local scheduler code
Remove the ThreadLocalScheduler type in favor of functions.
Move everything into the sched::local module.
|
2013-04-14 21:53:37 -07:00 |
|
Brian Anderson
|
a2e5827866
|
core::rt: All context switches are followed by a cleanup action
|
2013-04-14 20:49:22 -07:00 |
|
Brian Anderson
|
5f52aecb1e
|
core::rt: Schedulers only need a single cleanup_job at a time
Each context switch has up to one cleanup job and it is always
executed immediately after the context switch.
|
2013-04-14 19:24:43 -07:00 |
|
Brian Anderson
|
6b084bad25
|
core::rt: Insert calls to run_cleanup_tasks after all context switches
|
2013-04-14 18:56:22 -07:00 |
|
Brian Anderson
|
1cb78e736f
|
core::rt: Rename block_running_task_and_then to deschedul_...
|
2013-04-14 16:12:30 -07:00 |
|
Brian Anderson
|
8e966216c7
|
core::rt: Restructure task_from_last_cleanup_job to borrow correctly
We need a number of mutable references to contexts so name it
`get_contexts` and return a tuple of all of them.
|
2013-04-14 16:05:16 -07:00 |
|
Patrick Walton
|
1e91595520
|
librustc: Remove fail_unless!
|
2013-03-29 16:39:08 -07:00 |
|
Brian Anderson
|
30d4124a37
|
Merge remote-tracking branch 'brson/rt'
Conflicts:
src/libcore/rt/context.rs
src/libcore/rt/sched.rs
src/libcore/rt/thread.rs
src/libcore/rt/uv.rs
|
2013-03-25 12:28:54 -07:00 |
|
Patrick Walton
|
85c9fc6f8f
|
librustc: Remove the const declaration form everywhere
|
2013-03-22 22:24:35 -07:00 |
|
Patrick Walton
|
fa70709e07
|
libsyntax: Stop parsing pure and static
|
2013-03-22 22:24:33 -07:00 |
|
Patrick Walton
|
4634f7edae
|
librustc: Remove all uses of static from functions. rs=destatic
|
2013-03-22 10:27:39 -07:00 |
|
Patrick Walton
|
ca3bc644f4
|
libcore: Make a couple of constructors public. rs=testfixing
|
2013-03-19 20:37:53 -07:00 |
|
Patrick Walton
|
352c070365
|
librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming
|
2013-03-18 17:21:14 -07:00 |
|
Brian Anderson
|
5af5766512
|
core: Initialize global state lazily in the Scheduler ctor
I don't want any global one-time initalization functions because
that will make embedding harder.
|
2013-03-18 17:00:35 -07:00 |
|
Brian Anderson
|
9a075f264a
|
core: Rename rt::io to rt::rtio
This is an internal interface. I want to use rt::io for public interfaces.
|
2013-03-18 16:59:37 -07:00 |
|
Brian Anderson
|
42cba98509
|
core: Convert some multiline statements to single-line
|
2013-03-18 16:59:37 -07:00 |
|
Brian Anderson
|
e8ddef93da
|
core: Cleanup rt::context
|
2013-03-18 16:59:10 -07:00 |
|
Brian Anderson
|
676e0290ed
|
core: Add rt mod and add the new scheduler code
|
2013-03-11 19:44:29 -07:00 |
|