Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 456 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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,725
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,725
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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Joined: Feb 2017
Posts: 1,725
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