mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core: use thread_has_msg_queue() for message queue check
This commit is contained in:
parent
7835db5ec3
commit
c8937f8d40
@ -296,7 +296,7 @@ static int _msg_receive(msg_t *m, int block)
|
||||
|
||||
int queue_index = -1;
|
||||
|
||||
if (me->msg_array) {
|
||||
if (thread_has_msg_queue(me)) {
|
||||
queue_index = cib_get(&(me->msg_queue));
|
||||
}
|
||||
|
||||
@ -381,7 +381,7 @@ int msg_avail(void)
|
||||
|
||||
int queue_index = -1;
|
||||
|
||||
if (me->msg_array) {
|
||||
if (thread_has_msg_queue(me)) {
|
||||
queue_index = cib_avail(&(me->msg_queue));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user