Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK #473972
09/04/18 11:44
09/04/18 11:44
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
jcl,

I believe it would be useful if a plugin can have access to the lock() and unlock() functions, especially for file-writing.

In the future, can Zorro forward these functions to the plugins upon initialization? This can be implemented via new BrokerCommands SET_PTR_LOCK and SET_PTR_UNLOCK, for example.

Thanks,
Andrew

Re: New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK [Re: AndrewAMD] #473977
09/05/18 06:41
09/05/18 06:41
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Broker function calls are normally locked anyway, so it is guaranteed that two plugins can not write into a file simultaneously.

Re: New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK [Re: jcl] #473983
09/05/18 12:47
09/05/18 12:47
Joined: Feb 2017
Posts: 1,806
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,806
Chicago
I see, so as long as I'm writing from a Zorro thread, I'm safe.

Is this documented in the manual? This is useful info.

Thanks,
Andrew


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1