4 ms·
That's not really the same issue that is mentionned in the article though, is it ? The issue from the article would be solved by just passing a reference to th
by elcomet 6y ago
That's not really the same issue that is mentionned in the article though, is it ?
The issue from the article would be solved by just passing a reference to the variable.
In your case, cleanup is an action that needs to be done before writing new files. So you have to wait for cleanup anyway, don't you ?
- ashtonkem 6y agoThat's not true. Typically any server with a watch functionality will have a mutable reference to the data that's being watched. When you change that data out you're both changing the mutable reference, and also deallocating any memory that was previously used. One could separate these two steps, moving the watched data to another variable that's dropped in another thread, if you wanted.