Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, 7th_zorro), 1,332 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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,731
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,731
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,731
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,731
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 | chip programmers | 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