Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 328787b43ac8db7dac2b0cb846a6528e0815d048
Ticket: 1628986fffffffffffffffffffffffffffffffff
Threads can't access vfs from starpack
User & Date: nobody on 2007-01-05 18:42:44
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    As of 8.4.14, there is a chicken-and-egg problem with threads and the starpack vfs. 
    
    Threads now must explicitly mount any vfs's that they wish to use, as the mounts are no longer implicilty shared.  In  order for a thread to mount a vfs, it must package require the appropriate vfs package.  However in the case of a starpack, the package needed to mount the starpack's vfs (vfs::mk4) is in the starpack itself.  
    
    The following files built into a starpack demonstrate the problem.
    
    =======
    file: test.vfs/main.tcl
    
    package require starkit
    starkit::startup
    
    package require Thread
    
    set foo [file join [info nameofexecutable] foo.tcl]
     
    source $foo
    
    set t [thread::create {thread::wait}]
    
    # thread::send $t { #what goes here to give the thread access foo.tcl located in the starpack's vfs" }
    thread::send $t [list source $foo]
    
    =======
    file: test.vfs/foo.tcl
    
    puts "hello world from [thread::id]"
    
    
  4. foundin changed to: "obsolete: 8.4.14"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "Threads can't access vfs from starpack"
  12. type changed to: "Bug"