FROM : Ken Thomases
DATE : Sat Jan 05 08:36:12 2008
On Jan 4, 2008, at 7:06 PM, William Zumwalt wrote:
> #2) I make 3 calls to my server thread in sequence, so I marked all
> 3 as
> (oneway void). After doing this I was able to click on a button in
> my GUI
> while the thread was running, so I think the GUI was blocking w/ the
> default
> (inout void) ... at least I think that's the default.
>
>
> However my problem now is that with all three marked as (oneway void)
> (sending async msgs), message #2 requires a few seconds to complete
> while
> message #3 depends on message #2 before it can start, yet msg #3 is
> done
> before msg #2 can finish. I've also seen once where they arrived out
> of
> order.
>
>
> // from the client
>
> [server sendMsg1];
>
> [server sendMsg2];
>
> [server sendMsg3];
>
>
> Is there another way to call asynchronously, yet guarantee that the
> messages
> arrive in order? Or someway to call w/o the GUI blocking for a server
> message return?
See here:
http://developer.apple.com/documentation/Cocoa/Conceptual/DistrObjects/Tasks/configuring.html
In particular, the paragraph that discusses
setIndependentConversationQueueing:.
-Ken
DATE : Sat Jan 05 08:36:12 2008
On Jan 4, 2008, at 7:06 PM, William Zumwalt wrote:
> #2) I make 3 calls to my server thread in sequence, so I marked all
> 3 as
> (oneway void). After doing this I was able to click on a button in
> my GUI
> while the thread was running, so I think the GUI was blocking w/ the
> default
> (inout void) ... at least I think that's the default.
>
>
> However my problem now is that with all three marked as (oneway void)
> (sending async msgs), message #2 requires a few seconds to complete
> while
> message #3 depends on message #2 before it can start, yet msg #3 is
> done
> before msg #2 can finish. I've also seen once where they arrived out
> of
> order.
>
>
> // from the client
>
> [server sendMsg1];
>
> [server sendMsg2];
>
> [server sendMsg3];
>
>
> Is there another way to call asynchronously, yet guarantee that the
> messages
> arrive in order? Or someway to call w/o the GUI blocking for a server
> message return?
See here:
http://developer.apple.com/documentation/Cocoa/Conceptual/DistrObjects/Tasks/configuring.html
In particular, the paragraph that discusses
setIndependentConversationQueueing:.
-Ken
| Related mails | Author | Date |
|---|---|---|
| William Zumwalt | Jan 5, 02:06 | |
| marcelo.alves | Jan 5, 02:38 | |
| John Stiles | Jan 5, 02:48 | |
| William Zumwalt | Jan 5, 02:49 | |
| William Zumwalt | Jan 5, 02:54 | |
| Ken Thomases | Jan 5, 08:36 | |
| James Bucanek | Jan 5, 17:09 | |
| William Zumwalt | Jan 5, 22:35 | |
| William Zumwalt | Jan 5, 22:44 | |
| James Bucanek | Jan 6, 02:35 | |
| James Bucanek | Jan 6, 02:35 | |
| William Zumwalt | Jan 6, 03:35 | |
| glenn andreas | Jan 6, 04:16 | |
| William Zumwalt | Jan 6, 04:25 | |
| James Bucanek | Jan 6, 08:04 | |
| William Zumwalt | Jan 6, 09:28 | |
| Steve Weller | Jan 6, 18:55 |






Cocoa mail archive

