For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2008 > Re: serving a file to a client --- background fcopy read fileevent









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: serving a file to a client --- background fcopy read fileevent
vitick@gmail.com

2008-03-28, 7:30 pm

On Mar 28, 12:38 pm, Uwe Klein <uwe_klein_habertw...@t-online.de>
wrote:
> vit...@gmail.com wrote:
>
>
>
>
>
>
>
> Always at your service, Sir!
>
> Well, there are a couple of issues:
> vwait stacks, it does not work in parallel.
> i.e any stacked vwait has to trigger to expose
> the underlying vwaits.
> This is an unpleasant situation at best.
>
> Vwait works on variable change. Thus your
> code sequence should never get further than the
> entry to [vwait]
> after $after_time [list set wait_var]
> next: you are vwaiting inside of a proc
> on a variable change in local scope.
> ( no upvar, nor global statement )
> but [after] expedites its payload in global scope
> and your script only reads that var anyway.
> ( imho you should get a background error on this )
>
> I am not clear how this works. But my guess is not
> in the way you think it works.
>
> On the other hand: I may be compleately wrong ;-)
>
> uwe


Thanks Uwe,

You are right about stacking of vwaits. But they do seem to work on
local variables.

I was so excited about it. But it turns out that only ONE such code
instance will actually run alongside the regular file events. If I add
another one, one of them will suspend until the first one finishes.
Well, back to reality. At least I learned something new today. Thanks
again.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com