Branch: Tag:

2018-06-28

2018-06-28 17:21:43 by Jonas Walldén <jonasw@roxen.com>

Clear references to current job in thread farm directly after execution to
avoid delayed deallocation.

548: Inside #if constant(__builtin.thread_id)
   total_time += st/1000.0;    handled++;    job = 0; +  q = 0;    if( st > max_time )    max_time = st;    ft_cond->broadcast();
634: Inside #if constant(__builtin.thread_id)
      protected void dispatcher()    { -  while( array q = [array]job_queue->read() ) +  while( array q = [array]job_queue->read() ) {    aquire_thread()->run( q[1], q[0] ); -  +  q = 0; +  }    if (thread_name_cb)    thread_name_cb(this_thread(), 0);    }