[Starkit] starpack vfs can't be accessed from thread

Jeff Hobbs jeffh at activestate.com
Tue Jan 2 21:50:30 CET 2007


sgargash at comcast.net wrote:
> When using the most recent ActiveState release (8.4.14) on Windows, I
> can no longer access files in a VFS from a child thread.
	...
> I saw in an older comp.lang.tcl thread that there were thread safety
> issues in the vfs code, but that this had been fixed.   Is there now
> something new that needs to be done to allow the child thread access
> to the VFS?

It is correct that you shouldn't be able to access VFS mount points 
between threads by design.  That you could lead to horrible thread 
safety issues (*very* easy crash conditions).  A VFS mount point should 
be considered per thread.  If you need it in multiple threads, mount it 
per thread.

Jeff


More information about the Starkit mailing list