New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK

Posted By: AndrewAMD

New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK - 09/04/18 11:44

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
Posted By: jcl

Re: New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK - 09/05/18 06:41

Broker function calls are normally locked anyway, so it is guaranteed that two plugins can not write into a file simultaneously.
Posted By: AndrewAMD

Re: New BrokerCommands: SET_PTR_LOCK & SET_PTR_UNLOCK - 09/05/18 12:47

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
© 2024 lite-C Forums