Re: help me.
- From: "Leon Wu" <wuziqiang@xxxxxxxxx>
- Date: 24 Sep 2006 20:31:31 -0700
thanks for your reply.
In fact, above source code is just like goto statement, when you want
to do something, your assign the "state" variable to some value. the
"exit" flag will be set
after certain state is reached or the "quit" signal reach. this method
is really bad. Not only the code is like a mess, but sometimes the
modification of share memory will lost. I think the better solution
will be some kind of message(signal etc) instead of poll sharememory.
but now I only have rights to modify the control panel. so what I can
do is make this block of source code more readable.
.
- Follow-Ups:
- Re: help me.
- From: H. S. Lahman
- Re: help me.
- References:
- help me.
- From: Leon Wu
- Re: help me.
- From: H. S. Lahman
- help me.
- Prev by Date: Re: Polymorphism Downsides (was: what's the future of Object Oriented Programming)
- Next by Date: Re: Polymorphism Downsides (was: what's the future of Object Oriented Programming)
- Previous by thread: Re: help me.
- Next by thread: Re: help me.
- Index(es):
Relevant Pages
|