summary refs log tree commit diff
path: root/src/libstd/rt
AgeCommit message (Collapse)AuthorLines
2013-07-25libstd: Handle IPv4-Mapped/Compatible IPv6 addresses.Luqman Aden-1/+30
2013-07-25libstd: Fix errors when rtdebug! is not a noop.Luqman Aden-3/+3
2013-07-25libstd: Implement {peer, socket}_name for new rt tcp & udp.Luqman Aden-69/+202
2013-07-24auto merge of #7996 : erickt/rust/cleanup-strs, r=ericktbors-11/+9
This is a cleanup pull request that does: * removes `os::as_c_charp` * moves `str::as_buf` and `str::as_c_str` into `StrSlice` * converts some functions from `StrSlice::as_buf` to `StrSlice::as_c_str` * renames `StrSlice::as_buf` to `StrSlice::as_imm_buf` (and adds `StrSlice::as_mut_buf` to match `vec.rs`. * renames `UniqueStr::as_bytes_with_null_consume` to `UniqueStr::to_bytes` * and other misc cleanups and minor optimizations
2013-07-24fix compilation on macos/windowsDaniel Micay-1/+2
2013-07-24std:rt: args module is not used by win/mac. #7951Brian Anderson-69/+123
2013-07-23auto merge of #7980 : graydon/rust/misc-benchmarks, r=catamorphismbors-0/+38
Some machinery for enabling #[bench] benchmarks in std and some examples showing how to write them.
2013-07-23std and extra: use as_c_str instead of as_buf in a couple placesErick Tryzelaar-3/+3
These uses are assuming the strings are null terminated, so it should be using `as_c_str` instead of `as_buf`
2013-07-23std: move StrUtil::as_c_str into StrSliceErick Tryzelaar-7/+5
2013-07-23std: move str::as_buf into StrSliceErick Tryzelaar-4/+4
2013-07-22std: add #[bench] benchmarks for global and local heaps.Graydon Hoare-0/+38
2013-07-22std: fix for blocked task resumeJeff Olson-2/+2
2013-07-22std: make check appeasementJeff Olson-6/+7
2013-07-22std: minor timer cleanup based on feedbackJeff Olson-5/+5
2013-07-22std: add rt::io::TimerJeff Olson-0/+67
2013-07-22std: add RtioTimer and UvTimer impl atop rt::uvJeff Olson-0/+69
2013-07-22new snapshotDaniel Micay-21/+1
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-2/+2
Place `pub` or `priv` on individual items instead.
2013-07-20auto merge of #7910 : brson/rust/rm-fixme, r=graydonbors-5/+0
2013-07-20auto merge of #7908 : anasazi/rust/fix_udp_mut, r=brsonbors-82/+81
2013-07-20auto merge of #7858 : bblum/rust/kill, r=brsonbors-736/+940
Some notes about the commits. Exit code propagation commits: * ```Reimplement unwrap()``` has the same old code from ```arc::unwrap``` ported to use modern atomic types and finally (it's considerably nicer this way) * ```Add try_unwrap()``` has some new slightly-tricky (but pretty simple) concurrency primitive code * ```Add KillHandle``` and ```Add kill::Death``` are the bulk of the logic. Task killing commits: * ```Implement KillHandle::kill() and friends```, ```Do a task-killed check```, and ```Add BlockedTask``` implement the killing logic; * ```Change the HOF context switchers``` turns said logic on Linked failure commits: * ```Replace *rust_task ptrs``` adapts the taskgroup code to work for both runtimes * ```Enable taskgroup code``` does what it says on the tin. r? @brson
2013-07-20Add watched and indestructible spawn modes.Ben Blum-1/+1
2013-07-20Rename TCB to TaskgroupBen Blum-2/+2
2013-07-20Enable taskgroup code for newsched spawns.Ben Blum-2/+8
2013-07-20Replace *rust_task ptrs in taskgroup code with TaskHandle, for transitioning ↵Ben Blum-0/+17
to newsched killing.
2013-07-20Stash a spare kill flag inside tasks, to save two atomic xadds in the ↵Ben Blum-37/+75
blocking fastpath.
2013-07-20Add tests for task killing and blocking.Ben Blum-0/+140
2013-07-20Add test::with_test_task() convenience function.Ben Blum-1/+11
2013-07-20Change the HOF context switchers to pass a BlockedTask instead of a ~Task.Ben Blum-59/+100
2013-07-20Add BlockedTask (wake, try_block, etc) in kill.rs.Ben Blum-2/+95
2013-07-20Do a task-killed check at the start of task 'timeslices'.Ben Blum-1/+38
2013-07-20Implement KillHandle::kill() and friends (unkillable, atomically). Close #6377.Ben Blum-2/+150
2013-07-20Add tests for KillHandleBen Blum-0/+140
2013-07-20Remove join_latchBen Blum-654/+0
2013-07-20Add kill::Death for task death services and use it in Task.Ben Blum-21/+78
2013-07-20Add KillHandle and implement exit code propagation to replace join_latchBen Blum-0/+131
2013-07-20auto merge of #7855 : brson/rust/rt-overcommit, r=pcwaltonbors-5/+4
Too much overcommit here exhausts the low fd limit on OS X.
2013-07-19std: Remove old magic core modBrian Anderson-1/+1
2013-07-19std::rt: Remove an obsolete FIXME. #7757Brian Anderson-5/+0
2013-07-19std::rt: Use a constant 4 threads for multithreaded sched tests. #7772Brian Anderson-5/+4
Too much overcommit here exhausts the low fd limit on OS X.
2013-07-19Missed the methods of UdpWatcher.Eric Reed-18/+16
2013-07-19Changed methods on UDP sockets and TCP/UDP watchers to &mut self to reflect ↵Eric Reed-64/+65
that libuv may change the underlying handle.
2013-07-18auto merge of #7854 : brson/rust/rt-test-threads, r=pcwaltonbors-1/+1
2013-07-17test: Fix tests.Patrick Walton-3/+3
2013-07-17test: Fix tests.Patrick Walton-1/+1
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-8/+10
2013-07-17std::rt: Rename RUST_TEST_THREADS to RUST_RT_TEST_THREADSBrian Anderson-1/+1
2013-07-16Rename Option swap_unwrap to take_unwrap. Fixes Issue#7764Austin King-15/+15
2013-07-15remove headers from unique vectorsDaniel Micay-8/+0
2013-07-14Make TLS keys actually take up spaceAlex Crichton-2/+2
If the TLS key is 0-sized, then the linux linker is apparently smart enough to put everything at the same pointer. OSX on the other hand, will reserve some space for all of them. To get around this, the TLS key now actuall consumes space to ensure that it gets a unique pointer