www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - x64 can not run [core.thread.Fiber]

reply "sdvcn" <sdvcn 126.com> writes:
[code]
import std.stdio;


import core.thread;

void fiberFunc()
{
	foreach(i; 0 .. 10)
	{
		writefln("int is %d",i);
		Fiber.yield();
	}
}


int main(string[] argv)
{
	Fiber composed = new Fiber( &fiberFunc);
	do{
		writeln("out ...");
		composed.call();

	}while(composed.state != Fiber.State.TERM);


     return 0;
}
[/code]
dmd main.d -m64

dmd2.066.1
dmd2.066
dmd2.065

os:windows 2008r2sp1 6.1.7601 x64
Nov 07 2014
parent "Martin Nowak" <code dawg.eu> writes:
On Friday, 7 November 2014 at 11:17:16 UTC, sdvcn wrote:
 os:windows 2008r2sp1 6.1.7601 x64
We just found another bug with out win64 stack switching function. Will be fixed soon https://issues.dlang.org/show_bug.cgi?id=12800#c6.
Nov 07 2014