mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 18:52:50 -06:00
third fix for Windows
This commit is contained in:
@@ -1410,10 +1410,10 @@ void PgfDB::resize_map(size_t new_size)
|
|||||||
throw pgf_systemerror(last_error_to_errno());
|
throw pgf_systemerror(last_error_to_errno());
|
||||||
}
|
}
|
||||||
|
|
||||||
new_ms = (malloc_state*) MapViewOfFile(hMap,
|
ms = (malloc_state*) MapViewOfFile(hMap,
|
||||||
FILE_MAP_WRITE,
|
FILE_MAP_WRITE,
|
||||||
0,0,new_size);
|
0,0,new_size);
|
||||||
if (new_ms == NULL)
|
if (ms == NULL)
|
||||||
throw pgf_systemerror(last_error_to_errno());
|
throw pgf_systemerror(last_error_to_errno());
|
||||||
} else {
|
} else {
|
||||||
new_ms = (malloc_state*) ::realloc(ms, new_size);
|
new_ms = (malloc_state*) ::realloc(ms, new_size);
|
||||||
@@ -1422,7 +1422,6 @@ void PgfDB::resize_map(size_t new_size)
|
|||||||
}
|
}
|
||||||
new_size -= page_size;
|
new_size -= page_size;
|
||||||
|
|
||||||
ms = new_ms;
|
|
||||||
base = ((unsigned char*) ms) + page_size;
|
base = ((unsigned char*) ms) + page_size;
|
||||||
#endif
|
#endif
|
||||||
current_base = (unsigned char*) base;
|
current_base = (unsigned char*) base;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ private:
|
|||||||
#else
|
#else
|
||||||
DWORD pid;
|
DWORD pid;
|
||||||
HANDLE hMap;
|
HANDLE hMap;
|
||||||
HANDLE hMutex;
|
HANDLE hМutex;
|
||||||
HANDLE hRWEvent;
|
HANDLE hRWEvent;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user