[gmx-developers] dup_tfn in src/kernel/runner.c

Mark Abraham mark.abraham at anu.edu.au
Tue Aug 3 07:36:03 CEST 2010


I noticed in git master src/kernel/runner.c that dup_tfn is called twice during thread invocation, once by mdrunner_start_threads before the spawn, and then again by mdrunner_start_fn after the spawn. That seems like overkill. I think the latter suffices for each thread to get its own local copy of the filename data, so the former is unecessary. I'm no expert on threads, however...

Might this be an artefact of the thread reorganization a month or two back?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20100803/1d2616c4/attachment.html>

More information about the gromacs.org_gmx-developers mailing list