Ticket #1861 (closed defect: invalid)
av_lockmgr_register doesn't destroy the mutex
| Reported by: | John | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avutil |
| Version: | git-master | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Hello,
av_lockmgr_register doesn't invoke callBack function with AV_LOCK_DESTROY after using a mutex;
log:
Create a mutex
Create a mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Lock the mutex
Unlock the mutex
Change History
comment:2 Changed 7 months ago by John
I expect that function must itself destroy the mutex after all manipulations, because it creates them
Note: See
TracTickets for help on using
tickets.



At which point would you expect the mutex to be destroyed?
From that log, it seems you only call the register function once, it creates the two mutex objects it uses, and then just locks/unlocks them. It would only destroy them once you call it again.