Problem with ksycoca on windows

Ralf Habacker ralf.habacker at freenet.de
Fri Feb 15 13:23:58 GMT 2008


Thiago Macieira schrieb:
> On Friday 15 February 2008 14:05:20 Ralf Habacker wrote:
>   
>> Thiago Macieira schrieb:
>>     
>>> On Friday 15 February 2008 13:22:09 Ralf Habacker wrote:
>>>       
>>>>> We can also dump our mmap code since QFile has mmap support now in 4.4.
>>>>>           
>>>> You are refering to QSharedMemory class or something else ?
>>>>         
>>> http://doc.trolltech.com/main-snapshot/qfile.html#map
>>>       
>> I see, the main interesting point is
>> ... A file should be open for a map to succeed but the file does not
>> need to stay open after the memory has been mapped.
>>
>> which means after mapping and closing the file it is internal handled as
>> DLL (procexp show it) and could be renamed to make place for an updated
>> file. I made a related testcase yesterday.
>>     
>
> I thought Windows would lock the file if there were active maps to it.
>
> But it's good to know that it works as expected.
>   
for the record, I have added the related testcase.
> Note, however, that the QFile object must be kept around, even if the file is 
> closed. It owns the map, so if you destroy it, the mapped memory goes along 
> with it.
>   
this is understandable.

Ralf




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mmapupdate.cpp
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080215/aa9381b4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080215/aa9381b4/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksycoca4
Type: application/octet-stream
Size: 259 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080215/aa9381b4/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mmapclient.cpp
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080215/aa9381b4/attachment-0001.ksh>


More information about the kde-core-devel mailing list