Эксклюзивное открытие файла
Форум — Development
Мне нужен межпроцесовый мьютекс на базе файла. Возможно ли заблокировать файл от открытия в других процесах? Мне нужен аналог winapi кода:
OpenFile(, , OF_SHARE_EXCLUSIVE|OF_CREATE);
Описание OF_SHARE_EXCLUSIVE на msdn:
Opens a file with exclusive mode, and denies both read/write access to other processes. If a file has been opened in any other mode for read/write access, even by the current process, the function fails.