I am pretty sure that the METHOD GET ATTRIBUTES command will also return that
information.
In my Code Analysis component, if you open the “Explorer” window there is the
ability to filter the methods based on the preemptive capable attributes. Super
useful and you can do it live.
Dani Beaubien
Hi Wayne,
Thanks for the idea. So far the symbols files has provided what I need. Not as
simple to parse as if it had been spit out in JSON, but okay. Mostly I’m trying
to get an idea of which of my “foundation” modules are not thread safe, but
could be.
Thanks.
--
Cannon.Smith
Synergy Farm S
that might be one way to develop.
alternatively you could limit the list to all four types of "starter" methods:
1 Execute on server
2 New process
3 CALL WORKER
4 method called via menu item with "new process" enabled
there is really no need to examine every single subroutine.
that said, moving
Cannon,
I can't find the db I did this in but what I did was this:
METHOD GET PATHS(Path project method;$MethodNames_at)
METHOD GET ATTRIBUTES($MethodNames_at;$Attributes_ao)
Create a new array with those that area already marked as preemptive
safe. Save it somewhere
Then use METHOD SET ATTRIBU
that's right, method attributes only inform you of their preferences.
you could enable symbol file generation, compile, and look at the bottom of the
generated symbol file.
> 2019/04/12 3:33、Cannon Smith via 4D_Tech <4d_tech@lists.4d.com>のメール:
>
> I believe that preemptive capable in that contex
Hi Dani,
I believe that preemptive capable in that context just means that you’ve set
the method properties that way. I don’t think it means that if you tried to
compile the code would actually work in a preemptive context. I’d be happy to
be corrected if I’m wrong?
Thanks.
--
Cannon.Smith
Sy
Hi Vincent,
Perfect. Thank you very much!
--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada
> On Apr 11, 2019, at 11:10 AM, Vincent de Lachaux via 4D_Tech
> <4d_tech@lists.4d.com> wrote:
>
> If you activate the generation of the symbol file in the compilation
> preferences, comp
Hello,
If you activate the generation of the symbol file in the compilation
preferences, compile your database then open the myDtabase_symbols.txt files
created near the structure file, All methods are listed at the end of the file
with the status "Thread Safe" or "Thread Unsafe".
Vincent
Does anyone know if there is a way to get a list of methods that are (or are
not) preemptive ready?
Thanks.
--
Cannon.Smith
Synergy Farm Solutions Inc.
Aetna, AB Canada
**
4D Internet Users Group (4D iNUG)
Archive: http://l
9 matches
Mail list logo