I'm using LibreOffice 22.214.171.124 with HSQLDB database server (not embeded).
I've got a problem with form events management, so I'm looking best
practice to manage reantrancy :
1) I'm asking myself if each event is a different trhead ?
2) Do you know sample of code with uno API to manage Mutex
<https://api.libreoffice.org/docs/cpp/ref/a00130.html> in Thread that I
could use with Basic macros ? I couldn't find anything like this into
"Marcelyy, B., Godard, L. - Programmation OpenOffice.org 3 - Eyrolles,
2009" Do you know a other book more closer with Uni APIs ?
3) Is it possible to replace default Form listners by handlers, in order
to refuse reantrancy by rejecting unecessary events ?
4) Do I prefer modify the default Form controler in order to manage at
source level the reantrancy problem ? Do you sample of code to do?
5) Is it possible to write a mutex by home, I could use into my Forms
listners ? For exemple, using a global variable as counter events and a
wait() call to manage priorities ...
By the way, I noticed in my macro a global variable instanciated into
one of my form listner may disappear... I was reading into "Useful Macro
Information For OpenOffice.org By Andrew Pitonyak (p.373)
that controlers may be replaced by others ones, and listners detached...
So I'm asking myself if there is something similar explaining my
problem. But I'm only moving from one record to next one, and my
variable is global ...
Thank you for your help !
To unsubscribe e-mail to: email@example.com
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
- [libreoffice-users] Macros : How to solve concurrency/Reentrancy in events procedures ? · Patrick Gelin
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy