rstudio/rstudio — comment on commit 65b6b99362a538bd5aa691423b7d7bf3fe67e274
File: src/cpp/session/SessionSourceDatabaseSupervisor.cpp line 71
By jjallaire:

I checked in a revised version of the file locking which reflects this feedback (you should just review the new file rather than the diffs which will be a bit convoluted). I've now simplified to using a stack-based file_lock for the isLocked test and then using a single module level static for tracking the file_lock on the session directory. Let me know if you think this new scheme is appropriate.