]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add flags to spawn
authorrichter <richter@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Dec 1999 09:57:13 +0000 (09:57 +0000)
committerrichter <richter@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 22 Dec 1999 09:57:13 +0000 (09:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@2107 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.templates.h

index d635266a1929e28d740c5e0adee245601f31484c..e9fcb5eda7bbc14380c0c3979ad8919d88bd221e 100644 (file)
@@ -248,7 +248,7 @@ SparseMatrix<number>::vmult (Vector<somenumber>& dst, const Vector<somenumber>&
          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<number>::matrix_norm (const Vector<somenumber>& 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<number>::residual (Vector<somenumber>       &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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.