summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-06-23std::hashmap: Implement external iterator for HashMap and HashSetblake2-ppc-12/+79
2013-06-23Split out starting a listener from accepting incoming connections.Eric Reed-112/+181
The Listener trait takes two type parameters, the type of connection and the type of Acceptor, and specifies only one method, listen, which consumes the listener and produces an Acceptor. The Acceptor trait takes one type parameter, the type of connection, and defines two methods. The accept() method waits for an incoming connection attempt and returns the result. The incoming() method creates an iterator over incoming connections and is a default method. Example: let listener = TcpListener.bind(addr); // Bind to a socket let acceptor = listener.listen(); // Start the listener for stream in acceptor.incoming() { // Process incoming connections forever (or until you break out of the loop) }
2013-08-27Add a variant of home_for_io that consumes the handle. Refactor out common ↵Eric Reed-48/+53
parts of the home_for_io variants.
2013-06-23vec: remove BaseIter implementationDaniel Micay-90/+88
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22iterator: add a FromIterator traitDaniel Micay-2/+20
This is able to take advantage of the lower bound from the size hint.
2013-06-22iterator: add a size_hint default methodDaniel Micay-6/+70
also adds an implementation for the vector iterators
2013-06-22replaced some 'std::' with 'extra::' in commentsreus-2/+2
2013-06-22Finish up Type refactoringJames Miller-5/+5
2013-06-22Add the rest of the atomic operations.James Miller-0/+112
This makes the handling of atomic operations more generic, which does impose a specific naming convention for the intrinsics, but that seems ok with me, rather than having an individual case for each name. It also adds the intrinsics to the the intrinsics file.
2013-06-21std: Make console log off/on controls work with newschedBrian Anderson-8/+36
2013-06-21std::rt: Support os::argsBrian Anderson-11/+157
2013-06-21Added filtered method for Option typeHonza Strnad-0/+17
2013-06-21replace vec::find with the IteratorUtil methodDaniel Micay-42/+1
2013-06-21vec: replace `position` with `iter().position_`Daniel Micay-43/+5
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-191/+49
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-21vec: remove eachiDaniel Micay-41/+0
replaced by the `enumerate` method from std::iterator
2013-06-21vec: remove each_constDaniel Micay-15/+0
An Iterator implementation can be made for &const [T] if it turns out to be necessary for some use case.
2013-06-20std: Port SharedChan to newschedBrian Anderson-15/+37
2013-06-20Make task_rng() return @mut R instead of @@mut RKevin Ballard-10/+6
2013-06-20Merge remote-tracking branch 'brson/io' into io-upstreamBrian Anderson-832/+3129
Conflicts: src/rt/rust_builtin.cpp src/rt/rustrt.def.in
2013-06-20std::rt: WhitespaceBrian Anderson-2/+2
2013-06-20auto merge of #7128 : yichoi/rust/fix_sometc, r=brsonbors-2/+78
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs) - Adjust some test cases to rpass for Android - Modify some script to rpass for Android
2013-06-20Merge remote-tracking branch 'brson/io-wip' into ioBrian Anderson-23/+66
2013-06-20Merge remote-tracking branch 'upstream/io' into ioEric Reed-83/+249
2013-06-21libstd: cleanup warningsJames Miller-27/+9
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-98/+9
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-20ignore inherited environment test under valgrind r=snapshotJames Miller-0/+1
2013-06-19std: Make newsched failures log correctlyBrian Anderson-2/+11
2013-06-19derived instances of Eq and TotalEq for IpAddr rather than implement them ↵Eric Reed-21/+1
manually.
2013-06-19socket based UDP ioEric Reed-70/+157
2013-06-19std::rt: Update GC metadata in initBrian Anderson-0/+5
2013-06-19Changed visibility from being on the impl to being on methods per language ↵Eric Reed-13/+13
syntax change.
2013-06-19Modified a match in resume_task_from_queue that was returning an int that ↵toddaaro-17/+17
was then matched on to instead use an enum.
2013-06-19Wrote the Eq instance of IpAddr in a slightly different way.Eric Reed-3/+3
2013-06-19std::rt: Document and cleanup the run functionBrian Anderson-10/+30
2013-06-19std::rt: Correct the numbers of default coresBrian Anderson-6/+1
2013-06-19std::rt: Set the process exit codeBrian Anderson-5/+19
2013-06-18std::rt: Work around a dynamic borrowck bugBrian Anderson-3/+2
2013-06-18std: Work around some failing 'run' tests when valgrinding. #7224Brian Anderson-5/+25
Under valgrind on 64->32 cross compiles the dynamic linker is emitting some error messages on stderr, which interferes with the tests that are checking stderr.
2013-06-18std::rt: Improve the rtabort! macroBrian Anderson-15/+72
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-1156/+1156
2013-06-18std::rt: Turn on multithreaded schedulingBrian Anderson-16/+76
2013-06-17std: Rename `abort!` to `rtabort!` to match other macrosBrian Anderson-23/+23
2013-06-17std::rt: move abort function to util moduleBrian Anderson-9/+5
2013-06-17std::rt: Check exchange count on exitBrian Anderson-6/+37
2013-06-17std::rt: Add util mod and num_cpus functionBrian Anderson-5/+27
2013-06-17auto merge of #7197 : rkbodenner/rust/doc-for-lib-move, r=brsonbors-17/+18
Was updating some code of mine to use the new `std`/`extra` library names, and noticed a place where docs for `std::libc` hadn't been updated. Then I updated some top-level docs for the new libraries' names, too.
2013-06-17auto merge of #7131 : Blei/rust/windows-dynamic-lib, r=graydonbors-21/+33
The code compiles and runs under windows now, but I couldn't look up any symbol from the current executable (dlopen(NULL)), and calling looked up external function handles doesn't seem to work correctly under windows. This the beginning of a fix for #7095.
2013-06-17Merge remote-tracking branch 'upstream/io' into ioEric Reed-4550/+5705
Conflicts: src/libstd/rt/uvio.rs
2013-06-17Started to implemented UdpStreamEric Reed-0/+80