* path.cc (etc::dir_changed): Change `io' to a static NO_COPY

variable.  Explain why.  Add a muto to guard overwriting the changed_h
	handle by multiple concurrent threads.
	* path.h (class etc): Drop unused changed_h member.
This commit is contained in:
Corinna Vinschen
2012-07-31 19:36:16 +00:00
parent 217618d3d6
commit 68e41cfcf4
3 changed files with 40 additions and 22 deletions

View File

@@ -438,7 +438,6 @@ class etc
{
friend class dtable;
static int curr_ix;
static HANDLE changed_h;
static bool change_possible[MAX_ETC_FILES + 1];
static OBJECT_ATTRIBUTES fn[MAX_ETC_FILES + 1];
static LARGE_INTEGER last_modified[MAX_ETC_FILES + 1];