Sorry Brice, I'm very busy and I couldn't contribute with an analysis of your issue this far. Harald should be reading us and he recently tackled a very interesting issue with threads which is being discussed on tclcore and the ticket board at core.tcl.tk. He might have far better ideas about this issue. Nonetheless I hope to have some more time to dedicate on rivet this summer (summer is usually the time of the year when I'm more productive with Rivet)

 -- Massimo

On 06/14/2018 07:23 PM, Brice Hamon wrote:
No it isn't difficult. It's like an array but with the safeguards for multi thread access. But that's not the point. If I create a command from a thread, which can not be executed from the :: namespace, it won't work in the rvt code neither.

What I see is that a shared lib loaded in a tclsh works perfectly, but not within the rivet environment. Maybe it is a limitation which could be explained.

I started to look in the code, and found where the child process starts but the threads management is complicated. Is there a Rivet code documentation somewhere?  Something which explains how rivet works and interact with apache and TCL ?

Thank you,
Brice.




On Thu, Jun 14, 2018 at 11:36 AM, Massimo Manghi <massimo.man...@unipr.it <mailto:massimo.man...@unipr.it>> wrote:

    Tcl threads follow an 'apartment thread' model. For what I remember
    (never used extensively) each thread runs its own interpreter. That
    means that namespaces are not inherited and have to be created when a
    thread starts. Is the inter thread communication package so difficult to
    use?

      -- Massimo

    On 06/14/2018 04:33 PM, Brice Hamon wrote:

        Quick update: namespace route.

        I tried to import a namespace command from a namespace created
        in the
        RivetChildInit script into the TCL Thread and the import failed.
        That won't work either.

        So I think the closest to a solution was if the RivetChildinit vwait
        forever did not hang the web server, then this would work.




    Firma il tuo 5 x mille all’Università di Parma e aiuta così i nostri
    studenti che vogliono realizzare un’esperienza di studio all’estero
    – Indica 00308780345 nella tua denuncia dei redditi.



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to