Changed windows shm functions to ANSI equivalents.
This commit is contained in:
parent
c000249ad5
commit
8d377602be
1 changed files with 2 additions and 2 deletions
|
@ -293,14 +293,14 @@ namespace IPC {
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
if (master) {
|
if (master) {
|
||||||
//Under cygwin, all pages are 4 bytes longer than claimed.
|
//Under cygwin, all pages are 4 bytes longer than claimed.
|
||||||
handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, name.c_str());
|
handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, name.c_str());
|
||||||
} else {
|
} else {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
do {
|
do {
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
Util::sleep(1000);
|
Util::sleep(1000);
|
||||||
}
|
}
|
||||||
handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, name.c_str());
|
handle = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, name.c_str());
|
||||||
i++;
|
i++;
|
||||||
} while (i < 10 && !handle && autoBackoff);
|
} while (i < 10 && !handle && autoBackoff);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue