Re: [Felix-language] pthread issues

2012-02-05 Thread john skaller
On 02/02/2012, at 12:20 AM, john skaller wrote: > Pthreads are not working right. tools/launcg crashes, OMFG .. I bow down to the Valgrind God! Yep, Valgrind found the bug I've been hunting for two week in 2 seconds. var out = array_alloc[&char] t.len+1; is making an array of char* to pass

[Felix-language] pthread issues

2012-02-01 Thread john skaller
Pthreads are not working right. tools/launcg crashes, and this program fails to do what I expect: // pthread test noinline proc mkfibre(p:int, f:int) { spawn_fthread { for k in 1 upto 10 do eprint$ "Thr " + str p + " fibre " + str f + " step " + str k + "\n"; //Faio::sleep(sys_c