mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 10:00:55 +08:00
feat[mpp_lock]: Add spinlock timing statistic
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: Id63e28605853f07c3e557f01d8edffd67d7d1541
This commit is contained in:
@@ -48,9 +48,13 @@ extern "C" {
|
||||
|
||||
typedef struct {
|
||||
RK_U32 lock;
|
||||
RK_U32 debug;
|
||||
RK_S64 count;
|
||||
RK_S64 time;
|
||||
} spinlock_t;
|
||||
|
||||
void mpp_spinlock_init(spinlock_t *lock);
|
||||
void mpp_spinlock_deinit(spinlock_t *lock, const char *name);
|
||||
void mpp_spinlock_lock(spinlock_t *lock);
|
||||
void mpp_spinlock_unlock(spinlock_t *lock);
|
||||
bool mpp_spinlock_trylock(spinlock_t *lock);
|
||||
|
Reference in New Issue
Block a user