X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cc4bfafe5a31cb96f35b3ec9b19fa2b0b3a4eef..4aa59c3df6c324a6e6f9d540eac25e88b9c28acd:/interface/snglinst.h diff --git a/interface/snglinst.h b/interface/snglinst.h index 4090dc8c28..42942a2a19 100644 --- a/interface/snglinst.h +++ b/interface/snglinst.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: snglinst.h -// Purpose: documentation for wxSingleInstanceChecker class +// Purpose: interface of wxSingleInstanceChecker // Author: wxWidgets team // RCS-ID: $Id$ // Licence: wxWindows license @@ -48,7 +48,7 @@ } @endcode - Note using wxGetUserId to construct the name: this + Note using wxGetUserId() to construct the name: this allows different user to run the application concurrently which is usually the intended goal. If you don't use the user name in the wxSingleInstanceChecker name, only one user would be able to run the application at a time. @@ -80,7 +80,7 @@ public: Note that you can't call Create() more than once, so calling it if the @ref wxsingleinstancechecker() "non default ctor" had been used is an error. - + @param name must be given and be as unique as possible. It is used as the mutex name under Win32 and the lock file name under Unix. @@ -90,7 +90,7 @@ public: is optional and is ignored under Win32 and used as the directory to create the lock file in under Unix (default is wxGetHomeDir()) - + @returns Returns @false if initialization failed, it doesn't mean that another instance is running - use IsAnotherRunning() to check for it. @@ -102,5 +102,6 @@ public: Returns @true if another copy of this program is already running, @false otherwise. */ - bool IsAnotherRunning(); + bool IsAnotherRunning() const; }; +