]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Added inset-select-all to emacs bindings
[lyx.git] / src / insets / InsetInclude.cpp
index ff4a3291eb7b35dee677ee276015bb4a559e381f..74946504439d2c0655eb76e0c93be8f65545d5e7 100644 (file)
@@ -60,6 +60,7 @@
 #include "support/lassert.h"
 #include "support/lstrings.h" // contains
 #include "support/lyxalgo.h"
+#include "support/mutex.h"
 
 #include "support/bind.h"
 
@@ -75,8 +76,9 @@ namespace {
 
 docstring const uniqueID()
 {
-       // FIXME THREAD
        static unsigned int seed = 1000;
+       static Mutex mutex;
+       Mutex::Locker lock(&mutex);
        return "file" + convert<docstring>(++seed);
 }