diff --git a/src/frontend/inp.c b/src/frontend/inp.c index b295e3ed9..4712f221f 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -1234,7 +1234,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) ft_curckt->FTEstats->FTESTATnetPrepTime = seconds() - startTime; } - /* in shared ngspice controls a execute in the primary thread, typically + /* in shared ngspice controls are executed in the primary thread, typically before the background thread has finished. This leads to premature execution of commands. Thus this is delegated to a function using a third thread, that only starts when the background thread has finished (sharedspice.c).*/ diff --git a/src/sharedspice.c b/src/sharedspice.c index 101c9924e..a2494785c 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -593,7 +593,7 @@ sighandler_sharedspice(int num) #endif /*THREADS*/ /* create a suspended thread tid2 that is activated when bg_run has finished. - It executes the .control commands. If the arguemnt is NULL, the thread is + It executes the .control commands. If the argument is NULL, the thread is started with the existing controls (e.g. during command 'reset'. */ void exec_controls(wordlist *newcontrols)