Menu

#16 Incorrect fragments generation - multithread

open
nobody
None
5
2011-12-06
2011-12-06
Anonymous
No

I think that fragments are not generated well when multithreading is enabled (see screenshot).

Code to generate the diagram from is:
user:Actor
a:A
b:B
c:C

[c]
user:a.f1()
a:b.f11()
[/c]
[c]
user:a.f2()
a:b.f22()
b:c.f222()
[/c]

It is the same for 3.1 and 4.0-RC1

Discussion

  • Markus Strauch

    Markus Strauch - 2012-02-22

    Sorry, there is something conceptually wrong with the fragments. The sdedit pseudo "language" is line-oriented, but fragments are block-oriented.

    Think of fragments as an "experimental" feature. I do not even know if it is possible to describe/specify how fragments should be rendered when multiple threads are involved. Have a try. (Not saying that fragments are always correctly rendered in single-threaded mode.)

    If sdedit was based on a proper, maybe curly-bracket, context-free language, fragments would probably fit in much better. But how would you handle multithreading then, I guess one would need multiple editors, one for each thread. And would a fragment then be related to just one thread or to m out of n threads?

     

Log in to post a comment.

MongoDB Logo MongoDB