Subject Re: [Firebird-Architect] Re: Vulcan architecture and lock tables
Author Dimitry Sibiryakov
On 16 Dec 2006 at 14:28, Vlad Horsun wrote:

>> [1] Linkage of lock file to a file system path
>>
>> In my understanding FB only needs a named shared memory area. Why is
>> it mapped to a file system path? Just as a convenient uri? Or are
>> there other reasons?
>
> As i understand WinAPI we can't create shared memory area without
>giving it the file name

Why? Easily. Let me quote MSDN CreateFileMapping:

If hFile is (HANDLE)0xFFFFFFFF, the calling process must also specify
a mapping object size in the dwMaximumSizeHigh and dwMaximumSizeLow
parameters. The function creates a file-mapping object of the
specified size backed by the operating-system paging file rather than
by a named file in the file system. The file-mapping object can be
shared through duplication, through inheritance, or by name.

--
SY, Dimitry Sibiryakov.