Add std.parallelism.

This commit is contained in:
dsimcha 2011-04-26 20:06:25 -04:00
parent 083a91a627
commit 3cf67160b8
5 changed files with 3504 additions and 5 deletions

View file

@ -3,6 +3,7 @@ $(VERSION 053, ddd mm, 2011, =================================================,
$(WHATSNEW
$(LI Added bindings for libcurl: etc.c.curl)
$(LI Added std.net.isemail)
$(LI Added std.parallelism)
)
$(LIBBUGSFIXED
$(LI $(BUGZILLA 4644): assertExceptionThrown to assert that a particular exception was thrown)

View file

@ -157,10 +157,10 @@ STD_MODULES = $(addprefix std/, algorithm array base64 bigint bitmanip \
cstream ctype date datetime datebase dateparse demangle \
encoding exception file format functional getopt gregorian \
intrinsic json loader math mathspecial md5 metastrings mmfile \
numeric outbuffer path perf process random range regex regexp \
signals socket socketstream stdint stdio stdiobase stream \
string syserror system traits typecons typetuple uni uri utf \
variant xml zip zlib)
numeric outbuffer parallelism path perf process random range \
regex regexp signals socket socketstream stdint stdio stdiobase \
stream string syserror system traits typecons typetuple uni uri \
utf variant xml zip zlib)
STD_NET_MODULES = $(addprefix std/net/, isemail)

3488
std/parallelism.d Normal file

File diff suppressed because it is too large Load diff

View file

@ -36,6 +36,7 @@ public import std.md5;
public import std.metastrings;
public import std.mmfile;
public import std.outbuffer;
public import std.parallelism;
public import std.path;
public import std.perf;
public import std.process;
@ -85,6 +86,7 @@ version (all)
isValidDchar(cast(dchar)0); // utf
std.uri.ascii2hex(0); // uri
std.zlib.adler32(0,null); // D.zlib
auto t = task!cmp("foo", "bar"); // parallelism
ubyte[16] buf;
std.md5.sum(buf,"");

View file

@ -128,6 +128,7 @@ SRCS_3 = std\variant.d \
std\stdarg.d \
std\stdint.d \
std\json.d \
std\parallelism.d \
std\gregorian.d \
std\mathspecial.d \
std\internal\math\biguintcore.d \
@ -207,6 +208,7 @@ DOCS= $(DOC)\object.html \
$(DOC)\std_mmfile.html \
$(DOC)\std_numeric.html \
$(DOC)\std_outbuffer.html \
$(DOC)\std_parallelism.html \
$(DOC)\std_path.html \
$(DOC)\std_perf.html \
$(DOC)\std_process.html \
@ -266,7 +268,7 @@ SRC_STD= std\zlib.d std\zip.d std\stdint.d std\container.d std\conv.d std\utf.d
std\variant.d std\numeric.d std\bitmanip.d std\complex.d std\mathspecial.d \
std\functional.d std\algorithm.d std\array.d std\typecons.d \
std\json.d std\xml.d std\encoding.d std\bigint.d std\concurrency.d \
std\range.d std\stdiobase.d \
std\range.d std\stdiobase.d std\parallelism.d \
std\regex.d std\datebase.d \
std\__fileinit.d std\gregorian.d std\exception.d
@ -471,6 +473,9 @@ numeric.obj : std\numeric.d
outbuffer.obj : std\outbuffer.d
$(DMD) -c $(DFLAGS) std\outbuffer.d
parallelism.obj : std\parallelism.d
$(DMD) -c $(DFLAGS) std\parallelism.d
path.obj : std\path.d
$(DMD) -c $(DFLAGS) std\path.d
@ -770,6 +775,9 @@ $(DOC)\std_numeric.html : $(STDDOC) std\numeric.d
$(DOC)\std_outbuffer.html : $(STDDOC) std\outbuffer.d
$(DMD) -c -o- $(DFLAGS) -Df$(DOC)\std_outbuffer.html $(STDDOC) std\outbuffer.d
$(DOC)\std_parallelism.html : $(STDDOC) std\parallelism.d
$(DMD) -c -o- $(DFLAGS) -Df$(DOC)\std_parallelism.html $(STDDOC) std\parallelism.d
$(DOC)\std_path.html : $(STDDOC) std\path.d
$(DMD) -c -o- $(DFLAGS) -Df$(DOC)\std_path.html $(STDDOC) std\path.d