kernel: remove SEND_BLOCKED and REPLY_BLOCKED statuses from ports
this allows a port to be used by multiple threads at the same time
This commit is contained in:
@@ -102,7 +102,6 @@ static struct msg *get_next_msg(
|
||||
switch (msg->msg_status) {
|
||||
case KMSG_WAIT_RECEIVE:
|
||||
msg->msg_status = KMSG_WAIT_REPLY;
|
||||
msg->msg_sender_port->p_status = PORT_REPLY_BLOCKED;
|
||||
channel->c_msg_waiting--;
|
||||
return msg;
|
||||
case KMSG_ASYNC:
|
||||
|
||||
@@ -148,7 +148,6 @@ kern_status_t port_send_msg(
|
||||
|
||||
unsigned long flags;
|
||||
channel_lock_irqsave(port->p_remote, &flags);
|
||||
port->p_status = PORT_SEND_BLOCKED;
|
||||
channel_enqueue_msg(port->p_remote, &msg);
|
||||
channel_unlock_irqrestore(port->p_remote, flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user