Threading
Brok3n Halo
brokenhalo282 at gmail.com
Mon May 11 05:11:22 PDT 2009
Hi
I'm new do D and am getting the hang of things for the most part, but I can't
get threading to work at all. I couldn't find any examples specific to D 1.0
but seeing that the documentation look similar outside of the example for D2,
I followed the example at
http://www.digitalmars.com/d/2.0/phobos/std_thread.html#Thread
I tried it both was shown, but it doesn't seem to work as documented there,
probably due to changes from 1.0 to 2.0.
I attached the code I derived for one of the two ways, both had the same
result though of the method I want to be threaded just running in the main
thread when the thread object is initialized.
I'm using ReBuild 0.78 (based on DMD 2.019) from Eclipse Descent on the
Windows 7 Beta.
The output of the program looks like this:
Error: Win32 Exception
1
2
3
4
5
6
7
8
9
10
WTF!
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
OH HAI
Any help would be awesome, thanks.
begin 644 test.d
M;6]D=6QE('1E<W0[#0H-"FEM<&]R="!S=&0N=&AR96%D.PT*:6UP;W)T('-T
M9"YS=&1I;SL-"@T*#0IS=&%T:6,@:6YT(&-O=6YT(#T@,#L-"@T*=F]I9"!M
M86EN*"E[#0H-"@E4:')E860@=&5S='1H<F5A9#L-"@T*"75I;G0@=&5S=&9U
M;F,H*7L-"@D)=VAI;&4H8V]U;G0\,3`I>PT*"0D)*RMC;W5N=#L-"@D)"7=R
M:71E9FQN*"(E9"(L(&-O=6YT*3L-"@D)?0T*"0ER971U<FX@,#L-"@E]#0H-
M"@T*"71E<W1T:')E860@/2!N97<@5&AR96%D*'1E<W1F=6YC*3L-"@EW<FET
M969L;B at B5U1&(2(I.PT*"71E<W1T:')E860N<W1A<G0H*3L-"@T*"69O<BAI
M;G0@:2`](#`[(&D\,3`[("LK:2E[#0H)"7=R:71E9FQN*")/2"!(04DB*3L-
*"@E]#0H-"@T*?0``
`
end
More information about the Digitalmars-d-learn
mailing list