#include "support/filetools.h"
#include "support/gettext.h"
#include "support/lstrings.h"
+#include "support/mutex.h"
#include "support/textutils.h"
using namespace std;
Buffer * newUnnamedFile(FileName const & path, string const & prefix,
string const & templatename)
{
- // FIXME THREAD
static map<string, int> file_number;
+ static Mutex mutex;
+ Mutex::Locker locker(&mutex);
FileName filename;
do {