Re: Coding inside the debugger
From: Robert C. Martin (unclebob_at_objectmentor.com)
Date: 09/10/04
- Next message: Robert C. Martin: "Re: graph of behavior - was Re: State vs. Data (was Re: Fans of Template Method with protected variable?)"
- Previous message: Chris Uppal: "Re: Static vs. Dynamic typing"
- In reply to: paul campbell: "Re: Coding inside the debugger"
- Next in thread: paul campbell: "Re: Coding inside the debugger - ignore my other post :-)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 09 Sep 2004 18:53:55 -0500
On Thu, 9 Sep 2004 09:17:47 +0100, "paul campbell"
<p.au.lc@objectvision.DOT.co.DOT.uk> wrote:
>I am presuming that FitnessClient needs to do "something" when the packet
>transfers associated with a "session" are complete and hence the reason
>you are trying to avoid its thread becomming blocked on the read where
>no more packets are left to transfer.
Yes.
>
>My approach would be to not worry about avoiding the blocking call e.g.
>
>while(received != sent)
>{
> readBlock();
> processBlock();
>}
>
>by having a dedicate thread for this loop.
The problem with this is that recieved==sent does not mean that the
session is over. Depending on the timing, sent can equal received for
brief periods in the midst of the session.
-----
Robert C. Martin (Uncle Bob) | email: unclebob@objectmentor.com
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716
"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
- Next message: Robert C. Martin: "Re: graph of behavior - was Re: State vs. Data (was Re: Fans of Template Method with protected variable?)"
- Previous message: Chris Uppal: "Re: Static vs. Dynamic typing"
- In reply to: paul campbell: "Re: Coding inside the debugger"
- Next in thread: paul campbell: "Re: Coding inside the debugger - ignore my other post :-)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|