Escape Analysis on reddit

ore-sama spam at here.lot
Fri Oct 31 14:46:32 PDT 2008


Walter Bright Wrote:

> http://www.reddit.com/r/programming/comments/7akzd/escape_analysis/

how to mark and verify this?

void foo()
{
  void goo()
  {
    DoSomeJob();
  }
  JobHandle job=ThreadPool.QueueJob(&goo); //goo goes to the global state
  ...
  job.WaitForCompletion(); //but it's safe
}



More information about the Digitalmars-d mailing list