Skip to content

Commit

Permalink
fix: Improved last change for case of same callback with different data
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Nov 19, 2024
1 parent eb20a3a commit 27b7301
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/rt/RtraceSimulManager.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* RCSid $Id: RtraceSimulManager.h,v 2.18 2024/11/19 20:39:40 greg Exp $ */
/* RCSid $Id: RtraceSimulManager.h,v 2.19 2024/11/19 20:50:36 greg Exp $ */
/*
* RtraceSimulManager.h
*
Expand Down Expand Up @@ -140,10 +140,7 @@ class RtraceSimulManager : public RadSimulManager {
}
/// Set/change trace callback
void SetTraceCall(RayReportCall *cb, void *cd = NULL) {
if (cb == traceCall) {
if (cb) tcData = cd;
return;
}
if ((cb == traceCall) & (cd == tcData)) return;
int nt = NThreads();
if (nt > 1) SetThreadCount(1);
traceCall = cb;
Expand Down

0 comments on commit 27b7301

Please # to comment.