Changeset f3efa09 in sasview
- Timestamp:
- Jan 25, 2015 11:39:26 AM (10 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b52f47f, 5972029
- Parents:
- 5ba88d3
- Location:
- src/sans/perspectives
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/perspectives/pr/pr.py
rf4167637 rf3efa09 725 725 self.calc_thread.stop() 726 726 ## stop just raises the flag -- the thread is supposed to 727 ## then kill itself but cannot. Paul Kienzle came up with 728 ## this fix to prevent threads from stepping on each other 729 ## in Calc1D of fitting.py which was causing a simple custom model 730 ## to crash Sasview. See rest of notes under Calc1D. 727 ## then kill itself. In August 2014 it was shown that this is 728 ## incorrectly handled by fitting.py and a fix implemented. 729 ## It is not clear whether it is properly used here, but the 730 ## "fix" of waiting for the previous thread to end breaks the 731 ## pr perspective completely as it causes an infinite loop. 732 ## Thus it is likely the threading is bing properly handled. 733 ## While the "fix" is no longer implemented the comment is 734 ## left here till somebody ascertains that in fact the threads 735 ## are being properly handled. 731 736 ## 732 ## -PDB August 13, 2014 733 while self.calc_thread.isrunning(): 734 time.sleep(0.1) 737 ## -PDB January 25, 2015 735 738 736 739 pr = self.pr.clone() … … 1153 1156 self.estimation_thread.stop() 1154 1157 ## stop just raises the flag -- the thread is supposed to 1155 ## then kill itself but cannot. Paul Kienzle came up with 1156 ## this fix to prevent threads from stepping on each other 1157 ## in Calc1D of fitting.py which was causing a simple custom model 1158 ## to crash Sasview. See rest of notes under Calc1D. 1158 ## then kill itself. In August 2014 it was shown that this is 1159 ## incorrectly handled by fitting.py and a fix implemented. 1160 ## It is not clear whether it is properly used here, but the 1161 ## "fix" of waiting for the previous thread to end breaks the 1162 ## pr perspective completely as it causes an infinite loop. 1163 ## Thus it is likely the threading is bing properly handled. 1164 ## While the "fix" is no longer implemented the comment is 1165 ## left here till somebody ascertains that in fact the threads 1166 ## are being properly handled. 1159 1167 ## 1160 ## -PDB August 13, 2014 1161 while self.estimation_thread.isrunning(): 1162 time.sleep(0.1) 1168 ## -PDB January 25, 2015 1163 1169 1164 1170 … … 1181 1187 self.estimation_thread.stop() 1182 1188 ## stop just raises the flag -- the thread is supposed to 1183 ## then kill itself but cannot. Paul Kienzle came up with 1184 ## this fix to prevent threads from stepping on each other 1185 ## in Calc1D of fitting.py which was causing a simple custom model 1186 ## to crash Sasview. See rest of notes under Calc1D. 1189 ## then kill itself. In August 2014 it was shown that this is 1190 ## incorrectly handled by fitting.py and a fix implemented. 1191 ## It is not clear whether it is properly used here, but the 1192 ## "fix" of waiting for the previous thread to end breaks the 1193 ## pr perspective completely as it causes an infinite loop. 1194 ## Thus it is likely the threading is bing properly handled. 1195 ## While the "fix" is no longer implemented the comment is 1196 ## left here till somebody ascertains that in fact the threads 1197 ## are being properly handled. 1187 1198 ## 1188 ## -PDB August 13, 2014 1189 while self.estimation_thread.isrunning(): 1190 time.sleep(0.1) 1199 ## -PDB January 25, 2015 1191 1200 1192 1201 pr = self.pr.clone() -
src/sans/perspectives/simulation/simulation.py
rf4167637 rf3efa09 214 214 self.calc_thread_1D.stop() 215 215 ## stop just raises the flag -- the thread is supposed to 216 ## then kill itself but cannot. Paul Kienzle came up with217 ## this fix to prevent threads from stepping on each other218 ## in Calc1D of fitting.py which was causing a simple custom model219 ## to crash Sasview. See rest of notes under Calc1D.216 ## then kill itself. In August 2014 it was shown that this is 217 ## incorrectly handled by fitting.py and a fix implemented. 218 ## It is not clear that it is improperly used here so no fix 219 ## is being added here. 220 220 ## 221 ## -PDB August 13, 2014 222 while self.calc_thread_1D.isrunning(): 223 time.sleep(0.1) 221 ## -PDB January 25, 2015 224 222 225 223 # Create a computation thread
Note: See TracChangeset
for help on using the changeset viewer.