This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 85c857a7c3 compat/w32pthreads: add pthread_mutex_trylock
85c857a7c3 is described below

commit 85c857a7c3b7ce9d0da041edbb85559e3a8cbd0e
Author:     Lynne <[email protected]>
AuthorDate: Wed Aug 5 22:24:05 2026 +0900
Commit:     James Almer <[email protected]>
CommitDate: Wed Aug 5 22:28:51 2026 +0000

    compat/w32pthreads: add pthread_mutex_trylock
---
 compat/w32pthreads.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
index f689d04d51..5d01d1a14e 100644
--- a/compat/w32pthreads.h
+++ b/compat/w32pthreads.h
@@ -146,6 +146,11 @@ static inline int pthread_mutex_unlock(pthread_mutex_t *m)
     return 0;
 }
 
+static inline int pthread_mutex_trylock(pthread_mutex_t *m)
+{
+    return TryAcquireSRWLockExclusive(m) == 0 ? EBUSY : 0;
+}
+
 typedef INIT_ONCE pthread_once_t;
 #define PTHREAD_ONCE_INIT INIT_ONCE_STATIC_INIT
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to