pr_destroylock.rst (425B)
1 PR_DestroyLock 2 ============== 3 4 Destroys a specified lock object. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prlock.h> 13 14 void PR_DestroyLock(PRLock *lock); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 :ref:`PR_DestroyLock` has one parameter: 21 22 ``lock`` 23 A pointer to a lock object. 24 25 Caution 26 ------- 27 28 The caller must ensure that no thread is currently in a lock-specific 29 function. Locks do not provide self-referential protection against 30 deletion.