[Genabel-commits] r1634 - pkg/OmicABELnoMM/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Mar 5 19:54:52 CET 2014
Author: afrank
Date: 2014-03-05 19:54:51 +0100 (Wed, 05 Mar 2014)
New Revision: 1634
Modified:
pkg/OmicABELnoMM/src/AIOwrapper.cpp
Log:
IO Async Thread now finishes correctly. Solver can be reused in a single run now.
Modified: pkg/OmicABELnoMM/src/AIOwrapper.cpp
===================================================================
--- pkg/OmicABELnoMM/src/AIOwrapper.cpp 2014-03-05 18:40:19 UTC (rev 1633)
+++ pkg/OmicABELnoMM/src/AIOwrapper.cpp 2014-03-05 18:54:51 UTC (rev 1634)
@@ -91,7 +91,10 @@
pthread_cond_signal( &(Fhandler->condition_more ));
pthread_mutex_unlock(&(Fhandler->m_more));
- pthread_barrier_wait(&(Fhandler->finalize_barrier));
+ pthread_barrier_wait(&(Fhandler->finalize_barrier));
+
+ pthread_join( (Fhandler->iothread), NULL);
+
finalize_Y();
finalize_AR();
finalize_AL();
@@ -411,6 +414,8 @@
fclose(fp_Ar);
fclose(fp_B);
+ //cout << "\nexited io\n";
+
return 0;
//
More information about the Genabel-commits
mailing list