×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    minsk
    Posts
    432

    Question RMsgQueueBase::SendBlocking().

    Hi
    The documentation about RMsgQueueBase::SendBlocking(). says

    Sends a message through this queue, and waits for space to become available if the queue is full.

    does it mean that the current thread will be blocked? what is blocked here?
    -J

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: RMsgQueueBase::SendBlocking().

    Try reading this way:

    Sends a message through this queue.
    Waits for space to become available if the queue is full.

    The queue has a fixed size. If it is full, this method will wait for a slot becoming available. Compare to the other method, Send, which will produce KErrOverflow if there is no space for the new message.

    Send: always returns immediately, the message is either sent or not
    SendBlocking: the message is always sent, but it can take some time.

  3. #3
    Regular Contributor
    Join Date
    Nov 2004
    Location
    minsk
    Posts
    432

    Re: RMsgQueueBase::SendBlocking().

    what if no one is calling Receive on the other side? will my SendBlocking block the whole thread id Q is full?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: RMsgQueueBase::SendBlocking().

    Yes, of course.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×