修复 mq_timedreceive 中 mq_timedreceive 为空时断言
This commit is contained in:
parent
0c3a705482
commit
a15a5b19a4
|
@ -254,7 +254,7 @@ ssize_t mq_timedreceive(mqd_t mqdes,
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (abs_timeout != RT_NULL)
|
||||
tick = rt_timespec_to_tick(abs_timeout);
|
||||
|
||||
result = rt_mq_recv(mqdes->mq, msg_ptr, msg_len, tick);
|
||||
|
|
Loading…
Reference in New Issue