Skip to content

Commit

Permalink
2925: Отключил SRW Lock под Wine (выдаёт ошибки в консоль)
Browse files Browse the repository at this point in the history
  • Loading branch information
zedxxx committed Jan 8, 2021
1 parent e573d9e commit 07f9e9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/Synchronize/u_ReadWriteSyncSRW.pas
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,11 @@ function MakeSynchronizerSRWFactory: IReadWriteSyncFactory;
Exit;
end;
VDllHandle := GetModuleHandle('ntdll.dll');
// Resource
// Slim Reader/Writer (SRW) Lock
if (0 <> VDllHandle) then begin
if GetProcAddress(VDllHandle, 'wine_get_version') <> nil then begin
Exit; // http://www.sasgis.org/mantis/view.php?id=2925
end;
VInitializePtr := GetProcAddress(VDllHandle, 'RtlInitializeSRWLock');
if VInitializePtr <> nil then begin
VAcquireExclusivePtr := GetProcAddress(VDllHandle, 'RtlAcquireSRWLockExclusive');
Expand Down

6 comments on commit 07f9e9a

@yangzuocheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最新版加了什么功能呢

@yangzuocheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What features are added in the latest version?

@zedxxx
Copy link
Contributor Author

@zedxxx zedxxx commented on 07f9e9a Jan 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangzuocheng This commit fixes an error that occurs when running under wine http://www.sasgis.org/mantis/view.php?id=2925#c20041

@yangzuocheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you. I have two questions. The first one is. Why not set up a software that can download maps and overlay layers at the same time, and automatically splice them into large images, but first download tiles and then splice them. It's a bit of a hassle. Second question. Map mosaic can only have rectangle, not special-shaped mosaic. Such as cutting within national boundaries. These two questions have bothered me for a long time. Once wanted to download source code editor, but familiar with all the source code takes too long.

@zedxxx
Copy link
Contributor Author

@zedxxx zedxxx commented on 07f9e9a Jan 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangzuocheng There is a forum and bugtracker for such questions.

@yangzuocheng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. I have seen some suggestions put forward by friends in the forum. A simple way to download, and more beautiful pictures, is the appeal of many people.

Please sign in to comment.