From: richter Date: Wed, 22 Dec 1999 09:57:13 +0000 (+0000) Subject: add flags to spawn X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed89eec8ac7395f9a0f2a6e14ad5e4869563831;p=dealii-svn.git add flags to spawn git-svn-id: https://svn.dealii.org/trunk@2107 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/sparse_matrix.templates.h b/deal.II/lac/include/lac/sparse_matrix.templates.h index d635266a19..e9fcb5eda7 100644 --- a/deal.II/lac/include/lac/sparse_matrix.templates.h +++ b/deal.II/lac/include/lac/sparse_matrix.templates.h @@ -248,7 +248,7 @@ SparseMatrix::vmult (Vector& dst, const Vector& mem_fun_data[i].arg3 = n_rows * i / n_threads; mem_fun_data[i].arg4 = n_rows * (i+1) / n_threads; - thread_manager.spawn (&mem_fun_data[i]); + thread_manager.spawn (&mem_fun_data[i],THR_SCOPE_SYSTEM | THR_DETACHED); }; // ... and wait until they're finished @@ -425,7 +425,7 @@ SparseMatrix::matrix_norm (const Vector& v) const mem_fun_data[i].arg3 = n_rows * (i+1) / n_threads; mem_fun_data[i].arg4 = &partial_sums[i]; - thread_manager.spawn (&mem_fun_data[i]); + thread_manager.spawn (&mem_fun_data[i],THR_SCOPE_SYSTEM | THR_DETACHED); }; // ... and wait until they're finished @@ -581,7 +581,7 @@ SparseMatrix::residual (Vector &dst, mem_fun_data[i].arg5 = n_rows * (i+1) / n_threads; mem_fun_data[i].arg6 = &partial_norms[i]; - thread_manager.spawn (&mem_fun_data[i]); + thread_manager.spawn (&mem_fun_data[i],THR_SCOPE_SYSTEM | THR_DETACHED); }; // ... and wait until they're finished