mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
milan-avb: lock: make it lockable:
1. The period calls were added to handle timeouts. 2. Handle the case where lock must be unlocked after 60s if the controller owning the locked does not release it.
This commit is contained in:
parent
adad89dc0e
commit
c551acf4d1
5 changed files with 112 additions and 0 deletions
|
|
@ -86,6 +86,12 @@ static int aecp_message(void *data, uint64_t now, const void *message, int len)
|
|||
return info->handle(aecp, message, len);
|
||||
}
|
||||
|
||||
static void aecp_periodic(void *data, uint64_t now)
|
||||
{
|
||||
struct aecp *aecp = data;
|
||||
avb_aecp_aem_periodic(aecp, (int64_t)now);
|
||||
}
|
||||
|
||||
static void aecp_destroy(void *data)
|
||||
{
|
||||
struct aecp *aecp = data;
|
||||
|
|
@ -124,6 +130,7 @@ static const struct server_events server_events = {
|
|||
AVB_VERSION_SERVER_EVENTS,
|
||||
.destroy = aecp_destroy,
|
||||
.message = aecp_message,
|
||||
.periodic = aecp_periodic,
|
||||
.command = aecp_command
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue