This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: question about "cyg_mbox_get" function.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]