Re: Re: starkit-lite and threads: can't package require

Hermann Boeken <[email protected]> Tue, 21 Aug 2012 07:19:46 -0700 (PDT)
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Hello Uwe,

have you ever found the solution to this problem?
I have a similar problem here.
I want to package a threaded application as starpack, but none of my threads have access to the Tcl packages within the app's vfs then.

//Hermann

Am Dienstag, 17. Juli 2007 01:41:24 UTC+2 schrieb Uwe Koloska:
> Hello,
> 
> Am Montag, 16. Juli 2007 schrieb Pat Thoyts:
> > There are some issues still with the initial startup code. Its been a
> > while but if I remember correctly I found the internal packages were
> > not always available in slave interpreters and this is likely the same
> > in thread interpreters. I currently use a modified kitInit.c as
> > attached. This drops the preInitScript in favour of using the full
> > appInit script as was done in the old tclkits. Possibly this will help
> > you -- seems to work ok for me.
> 
> Yes, this works.  At least the internal packages are available.  But the vfs 
> is still not mounted (I think this is due to the thread safety problem). A 
> simple
>   package require starkit
>   starkit::startup
> doesn't mount the vfs (or at least not with the same path).
> 
> How can I load packages from the vfs inside the thread?
> 
> The threadvfs proc from the earlier mentioned thread doesn't work anymore.
> 
> Thank you for any help
> Uwe Koloska

-- 
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en