From 63bc897c9444b364b0364bfd04a0c87d9fe29307 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 6 Aug 2015 01:13:17 +0200 Subject: Provide pcilib_try_lock call --- pcilib/lock.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pcilib/lock.h') diff --git a/pcilib/lock.h b/pcilib/lock.h index 8e1017a..9ffe4cf 100644 --- a/pcilib/lock.h +++ b/pcilib/lock.h @@ -86,6 +86,13 @@ int pcilib_lock_custom(pcilib_lock_t* lock, pcilib_lock_flags_t flags, pcilib_ti */ int pcilib_lock(pcilib_lock_t* lock); +/** + * this function will try to take a lock for the mutex pointed by lock + * @param[in] lock the pointer to the mutex + */ +int pcilib_try_lock(pcilib_lock_t* lock); + + /** * this function will unlock the lock pointed by lock * @param[in] lock the integer that points to the semaphore -- cgit v1.2.3