X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FTempFile.h;h=16efede3ab57880e54bbefd7ac71a2037510db36;hb=279e656d6a7c4ee3647752cba8b9aa7d6ec6e0c2;hp=53e91f0ae56a81632eb5c053db52d04167555be3;hpb=cbad159ac2de9387e9ef6130568eb2fa97732ad4;p=lyx.git diff --git a/src/support/TempFile.h b/src/support/TempFile.h index 53e91f0ae5..16efede3ab 100644 --- a/src/support/TempFile.h +++ b/src/support/TempFile.h @@ -24,6 +24,13 @@ class FileName; * The file is created in the constructor, and deleted in the destructor. * You may do anything with the file (including deletion), but the instance * of this class must stay alive as long as the file is needed. + * There is only one exception to this rule: + * If the file is supposed to be used by a different process then you need + * to be aware of OS specific file locking semantics: On windows, the file + * is opened with exclusive rights for the process which opened it. This + * is not the case on other OSes. Therefore, if the file is supposed to be + * used by a different process you need to sometheing similar to TempName + * in InsetExternal.cpp. */ class TempFile { /// noncopyable