mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 03:41:52 +08:00
avoid sleeping in ecrt_master_send_ext()
mini.c example now plays well with EoE.
This commit is contained in:
@@ -2533,7 +2533,9 @@ int ecrt_master_send_ext(ec_master_t *master)
|
||||
{
|
||||
ec_datagram_t *datagram, *next;
|
||||
|
||||
down(&master->ext_queue_sem);
|
||||
if (down_trylock(&master->ext_queue_sem))
|
||||
return;
|
||||
|
||||
list_for_each_entry_safe(datagram, next, &master->ext_datagram_queue,
|
||||
ext_queue) {
|
||||
list_del_init(&datagram->ext_queue);
|
||||
|
||||
Reference in New Issue
Block a user