help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Timeouts for BlockClosures


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Timeouts for BlockClosures
Date: Wed, 20 Apr 2011 20:35:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110411 Lightning/1.0b2 Thunderbird/3.1.9

On 04/12/2011 09:40 AM, Paolo Bonzini wrote:
> On 04/11/2011 11:23 PM, Holger Hans Peter Freyther wrote:
>> Thanks for your time and input. Feel free to remove the syntactic sugar part
>> or ask me to do it.
> 
> Done, and moved everything to kernel/ and tests/delays.st.
>

I have found a funny bug but I don't know the source of it and could need a
pointer.


a) socket := Socket remote: ... port...
b) write N bytes into the socket


a) socket next: N.
a) socket readBuffer inspect (ptr is beyond endPtr)

(Delay forSeconds: 3)
        value: [socket next: N]
        onTimeoutDo: [a) socket readBuffer.. -> ptr is back to 1]

so there must be some ensure: [] block that resets the endptr. Would you know
where to find it? is there also some kind of watchpoint support in GST?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]