- Add priority message queue to msgport. Send a message with MSGF_PRIORITY
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 9 Nov 2008 09:20:09 +0000 (09:20 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 9 Nov 2008 09:20:09 +0000 (09:20 +0000)
commite2ff0223a1c259e3518ec21d65a82cf5ca1d462a
tree46f6ddb684644db32868146f269cd9812423c09f
parent01a72c9fb55b3e13d5bf1a6b2a37732a499cf480
- Add priority message queue to msgport.  Send a message with MSGF_PRIORITY
  flag will queue the message into the priority message queue of the target
  port.  The priority message queue takes precendence over normal message
  queue, so the messages with MSGF_PRIORITY flag will be processed before
  other messages on the same target port.  This could be used by defering
  callout or operation that should not be delayed too long on the target
  port.
- Add dropmsg function to msgport.  Message must be marked with MSGF_DROPABLE,
  else dropmsg operation is not allowed.  Message marked with MSGF_DROPABLE
  is not waitable, i.e. you could not call domsg on this kind of message.
  Currently only thread msgport supports this operation and this operation
  must be performed in the same thread of the msgport's owner thread.

Discussed-with: dillon@
sys/kern/lwkt_msgport.c
sys/sys/msgport.h
sys/sys/msgport2.h