User talk:Philosopher/Nasal introspection: Difference between revisions

Jump to navigation Jump to search
m
m (→‎August 14: make it less obviously broken :-))
Line 78: Line 78:


thread.newthread = func(code, thread_id) {
thread.newthread = func(code, thread_id) {
counter.do ( counter.get() +=1 );
counter.do ( func counter.get() +=1 ); # increment thread counter
code();
code(); # run callback in new thread
counter.do (counter.get() -=1 );
counter.do ( func counter.get() -=1 ); # decrement thread counter
}
}


Navigation menu