This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about "cyg_mbox_get" function.
- To: Tony Ko <nhko at gctsemi dot com>
- Subject: Re: [ECOS] question about "cyg_mbox_get" function.
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 30 Jul 2001 19:53:53 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <9860C773D04D834D83FD6FAD00A61E9311B715@gctsemi.gctsemi.com>
Tony Ko wrote:
>
> hi.
> what happen if a thread try to get a message from message queue using
> "cyg_mbox_get( ) " ,
> while there is no avaliable message on the message queue?
>
> the thread should be turned to "suspended state "?
Not suspended, but sleeping, with the sleep reason being "WAIT". You can
use cyg_mbox_tryget if you don't want to wait.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine