Posted: Tue Feb 19, 2008 4:08 am Post subject: Is the get() method not interruptable?
Newbie
Joined: 10 Jul 2006 Posts: 8
I am using the C++ api.
When i call the get() method on a queue with the options: MQGMO_WAIT + MQGMO_FAIL_IF_QUIESCING, it blocks until the message arrives or time expires.
even though i interrupt the process by pressing ctrl+c. Is that a way to make the get() fails automatically when someone interrupt the process?
Posted: Tue Feb 19, 2008 4:30 am Post subject: Re: Is the get() method not interruptable?
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
yslee2 wrote:
IIs that a way to make the get() fails automatically when someone interrupt the process?
No.
Either set a short wait interval or code for a "stop" message on the queue to terminate the wait. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum