in reply to Re^4: Forking Clients
in thread Forking Clients
it only knows about the port it was told to use. Should I dequeue check the port/result and if it doesn't match enqueue it again?
No. What you are describing probably requires a completely different architecture to your OP code. But you first need to ask yourself a few questions.
The first problem is how are you ever going to get to call blee() once you've called blah()?
Ie. In the code that calls blah() and blee(), as you've described it in this post, once you call the first of these, it is going to block until it gets it's results, so you won't be able to call the second until the first has finished.
So how can "These function may very well call rpc at the same time," be so?
Once you decide how the top level of your code is going to operate, then you can decide how best to structure it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Forking Clients
by gepapa (Acolyte) on Oct 15, 2008 at 19:05 UTC | |
by BrowserUk (Patriarch) on Oct 15, 2008 at 23:04 UTC | |
by gepapa (Acolyte) on Oct 16, 2008 at 13:11 UTC | |
by BrowserUk (Patriarch) on Oct 16, 2008 at 13:59 UTC | |
by gepapa (Acolyte) on Oct 16, 2008 at 14:50 UTC | |
| |
by mr_mischief (Monsignor) on Oct 15, 2008 at 21:05 UTC | |
by gepapa (Acolyte) on Oct 16, 2008 at 12:31 UTC | |
by mr_mischief (Monsignor) on Oct 16, 2008 at 19:30 UTC |